From 8ebc79f63e2d1e7cf9dd89e884da89fca3275500 Mon Sep 17 00:00:00 2001 From: "Tom G. Christensen" Date: Fri, 15 Aug 2008 20:26:03 +0000 Subject: [PATCH] libidn 1.9 for Solaris 2.6/sparc --- libidn/build.sh | 80 ++++++++++++++++++++++++++++++++++++++++++++ libidn/meta/pkgdef | 29 ++++++++++++++++ libidn/meta/relnotes | 27 +++++++++++++++ 3 files changed, 136 insertions(+) create mode 100755 libidn/build.sh create mode 100644 libidn/meta/pkgdef create mode 100644 libidn/meta/relnotes diff --git a/libidn/build.sh b/libidn/build.sh new file mode 100755 index 0000000..afc8c33 --- /dev/null +++ b/libidn/build.sh @@ -0,0 +1,80 @@ +#!/bin/bash +# This is a buildpkg build.sh script +# Copyright (C) 2003-2008 Tom G. Christensen + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# Written by Tom G. Christensen . + +# build.sh helper functions +. ${BUILDPKG_BASE}/scripts/build.sh.functions +# +########################################################### +# Check the following 4 variables before running the script +topdir=libidn +version=1.9 +pkgver=1 +source[0]=ftp://ftp.sunet.se/pub/gnu/libidn/$topdir-$version.tar.gz +# If there are no patches, simply comment this +#patch[0]= + +# Source function library +. ${BUILDPKG_BASE}/scripts/buildpkg.functions + +# Global settings +export CPPFLAGS="-I$prefix/include" +export LDFLAGS="-L$prefix/lib -R$prefix/lib" +configure_args="$configure_args --disable-static --with-libiconv-prefix=$prefix --with-libintl-prefix=$prefix" + +reg prep +prep() +{ + generic_prep +} + +reg build +build() +{ + generic_build +} + +reg check +check() +{ + generic_check +} + +reg install +install() +{ + generic_install DESTDIR + doc AUTHORS COPYING COPYING.LIB NEWS THANKS TODO FAQ README +} + +reg pack +pack() +{ + generic_pack +} + +reg distclean +distclean() +{ + clean distclean +} + +################################################### +# No need to look below here +################################################### +build_sh $* diff --git a/libidn/meta/pkgdef b/libidn/meta/pkgdef new file mode 100644 index 0000000..1dbaad5 --- /dev/null +++ b/libidn/meta/pkgdef @@ -0,0 +1,29 @@ +[libidn] +pkgname="${pkgprefix}lidn" +name="$topdir - GNU libidn" +pkgcat="application" +pkgvendor="http://josefsson.org/libidn/" +pkgdesc="Internationalized string preparation library" +pkgver="$pkgver" +files(-,root,bin) +default_docs +$_bindir/idn +$_libdir/libidn.so.* +$_sharedir/emacs +$_sharedir/locale/*/LC_MESSAGES/libidn.mo +$_infodir +$_mandir/man1 + +[libidn-devel] +pkgname="${pkgprefix}lidnd" +name="${topdir}-devel - Development support for libidn" +pkgcat="application" +pkgvendor="http://josefsson.org/libidn/" +pkgdesc="Files needed for developing with libidn" +pkgver="$pkgver" +files(-,root,bin) +$_includedir +$_libdir/libidn.so +$_libdir/pkgconfig +$_mandir/man3 + diff --git a/libidn/meta/relnotes b/libidn/meta/relnotes new file mode 100644 index 0000000..bd83629 --- /dev/null +++ b/libidn/meta/relnotes @@ -0,0 +1,27 @@ +PACKAGE DETAILS +--------------- +Name: %%PKGNAME%% +Version: %%SOURCE_AND_VER%% +Vendor: %%VENDOR%% +Packager: %%PKGEDBY%% + +Source (sha1sum): +%%SOURCE_SHA1SUM%% + +BUILD DETAILS +------------- +Compiler: +%%COMPILER%% + +Environment: +%%ENVIRONMENT%% + +Configure: +%%CONFIGURE%% + +KNOWN DEPENDENCIES +------------------ +%%DEPENDENCIES%% + +ERRORS/MISCELLANEOUS +--------------------