summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2002-10-28 22:49:15 +0000
committerseb <seb@pkgsrc.org>2002-10-28 22:49:15 +0000
commit1353de96731125ded997116580e53073935571f5 (patch)
tree4aff606fd51aa4ed560e80a6e25fde46ec160d8c /textproc
parent10b882092fe40615cb7f0592d221eee9c8c506c2 (diff)
downloadpkgsrc-1353de96731125ded997116580e53073935571f5.tar.gz
Fix PLIST according to MACHINE_ENDIAN: so lib/icu/1.7/libicudt17*.so
entry is sorted hence package removal is clean. Trivially use buildlink2. Provide buildlink2.mk.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/icu/Makefile22
-rw-r--r--textproc/icu/PLIST4
-rw-r--r--textproc/icu/buildlink2.mk114
3 files changed, 130 insertions, 10 deletions
diff --git a/textproc/icu/Makefile b/textproc/icu/Makefile
index 81e4ad663dd..8bff1f14a82 100644
--- a/textproc/icu/Makefile
+++ b/textproc/icu/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2001/06/11 06:34:52 jlam Exp $
+# $NetBSD: Makefile,v 1.8 2002/10/28 22:49:15 seb Exp $
#
DISTNAME= icu-1.7
@@ -13,13 +13,21 @@ COMMENT= Robust and full-featured unicode support
WRKSRC= ${WRKDIR}/icu/source
GNU_CONFIGURE= YES
USE_GMAKE= YES
+USE_BUILDLINK2= YES
-PLIST_INIT= ${PKGDIR}/PLIST
-PLIST_SRC= ${WRKSRC}/PLIST
+.include "../../mk/endian.mk"
-CONFIGURE_ARGS+= --disable-threads
+BIG_ENDIAN=
+LITTLE_ENDIAN=
+.if ${MACHINE_ENDIAN} == "little"
+BIG_ENDIAN= '@comment '
+.elif ${MACHINE_ENDIAN} == "big"
+LITTLE_ENDIAN= '@comment '
+.endif
+PLIST_SUBST+= BIG_ENDIAN=${BIG_ENDIAN}
+PLIST_SUBST+= LITTLE_ENDIAN=${LITTLE_ENDIAN}
-CPPFLAGS+= -I${LOCALBASE}/include
+CONFIGURE_ARGS+= --disable-threads
pre-configure:
${CHMOD} u+rx ${WRKSRC}/configure
@@ -27,8 +35,4 @@ pre-configure:
test: build
cd ${WRKSRC} && ${MAKE_PROGRAM} check
-post-install:
- @${CP} ${PLIST_INIT} ${PLIST_SRC}
- @(cd ${PREFIX} && ls lib/icu/1.7/libicudt17[lb].so >> ${PLIST_SRC})
-
.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/icu/PLIST b/textproc/icu/PLIST
index a869098f613..f536993d76b 100644
--- a/textproc/icu/PLIST
+++ b/textproc/icu/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2001/10/31 22:56:55 zuntum Exp $
+@comment $NetBSD: PLIST,v 1.2 2002/10/28 22:49:15 seb Exp $
etc/icu/convrtrs.txt
include/unicode/bidi.h
include/unicode/brkiter.h
@@ -83,6 +83,8 @@ include/unicode/utrans.h
include/unicode/utypes.h
lib/icu/1.7/Makefile.inc
lib/icu/1.7/libicudata.so
+${LITTLE_ENDIAN}lib/icu/1.7/libicudt17l.so
+${BIG_ENDIAN}lib/icu/1.7/libicudt17b.so
lib/icu/Makefile.inc
lib/icu/current
lib/libicui18n.so
diff --git a/textproc/icu/buildlink2.mk b/textproc/icu/buildlink2.mk
new file mode 100644
index 00000000000..365d6b72d97
--- /dev/null
+++ b/textproc/icu/buildlink2.mk
@@ -0,0 +1,114 @@
+# $NetBSD: buildlink2.mk,v 1.1 2002/10/28 22:49:15 seb Exp $
+#
+# This Makefile fragment is included by packages that use icu.
+#
+# This file was created automatically using createbuildlink 2.2.
+# And then hand edited.
+#
+
+.if !defined(ICU_BUILDLINK2_MK)
+ICU_BUILDLINK2_MK= # defined
+
+BUILDLINK_PACKAGES+= icu
+BUILDLINK_DEPENDS.icu?= icu>=1.7
+BUILDLINK_PKGSRCDIR.icu?= ../../textproc/icu
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.icu=icu
+BUILDLINK_PREFIX.icu_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.icu+= include/unicode/bidi.h
+BUILDLINK_FILES.icu+= include/unicode/brkiter.h
+BUILDLINK_FILES.icu+= include/unicode/calendar.h
+BUILDLINK_FILES.icu+= include/unicode/chariter.h
+BUILDLINK_FILES.icu+= include/unicode/choicfmt.h
+BUILDLINK_FILES.icu+= include/unicode/coleitr.h
+BUILDLINK_FILES.icu+= include/unicode/coll.h
+BUILDLINK_FILES.icu+= include/unicode/convert.h
+BUILDLINK_FILES.icu+= include/unicode/cpdtrans.h
+BUILDLINK_FILES.icu+= include/unicode/datefmt.h
+BUILDLINK_FILES.icu+= include/unicode/dbbi.h
+BUILDLINK_FILES.icu+= include/unicode/dcfmtsym.h
+BUILDLINK_FILES.icu+= include/unicode/decimfmt.h
+BUILDLINK_FILES.icu+= include/unicode/docmain.h
+BUILDLINK_FILES.icu+= include/unicode/dtfmtsym.h
+BUILDLINK_FILES.icu+= include/unicode/fieldpos.h
+BUILDLINK_FILES.icu+= include/unicode/fmtable.h
+BUILDLINK_FILES.icu+= include/unicode/format.h
+BUILDLINK_FILES.icu+= include/unicode/gregocal.h
+BUILDLINK_FILES.icu+= include/unicode/hangjamo.h
+BUILDLINK_FILES.icu+= include/unicode/hextouni.h
+BUILDLINK_FILES.icu+= include/unicode/jamohang.h
+BUILDLINK_FILES.icu+= include/unicode/locid.h
+BUILDLINK_FILES.icu+= include/unicode/msgfmt.h
+BUILDLINK_FILES.icu+= include/unicode/normlzr.h
+BUILDLINK_FILES.icu+= include/unicode/nultrans.h
+BUILDLINK_FILES.icu+= include/unicode/numfmt.h
+BUILDLINK_FILES.icu+= include/unicode/parseerr.h
+BUILDLINK_FILES.icu+= include/unicode/parsepos.h
+BUILDLINK_FILES.icu+= include/unicode/platform.h
+BUILDLINK_FILES.icu+= include/unicode/pmacos.h
+BUILDLINK_FILES.icu+= include/unicode/pos2.h
+BUILDLINK_FILES.icu+= include/unicode/pos400.h
+BUILDLINK_FILES.icu+= include/unicode/putil.h
+BUILDLINK_FILES.icu+= include/unicode/pwin32.h
+BUILDLINK_FILES.icu+= include/unicode/rbbi.h
+BUILDLINK_FILES.icu+= include/unicode/rbt.h
+BUILDLINK_FILES.icu+= include/unicode/rep.h
+BUILDLINK_FILES.icu+= include/unicode/resbund.h
+BUILDLINK_FILES.icu+= include/unicode/schriter.h
+BUILDLINK_FILES.icu+= include/unicode/scsu.h
+BUILDLINK_FILES.icu+= include/unicode/simpletz.h
+BUILDLINK_FILES.icu+= include/unicode/smpdtfmt.h
+BUILDLINK_FILES.icu+= include/unicode/sortkey.h
+BUILDLINK_FILES.icu+= include/unicode/tblcoll.h
+BUILDLINK_FILES.icu+= include/unicode/timezone.h
+BUILDLINK_FILES.icu+= include/unicode/translit.h
+BUILDLINK_FILES.icu+= include/unicode/ubidi.h
+BUILDLINK_FILES.icu+= include/unicode/ubrk.h
+BUILDLINK_FILES.icu+= include/unicode/ucal.h
+BUILDLINK_FILES.icu+= include/unicode/uchar.h
+BUILDLINK_FILES.icu+= include/unicode/uchriter.h
+BUILDLINK_FILES.icu+= include/unicode/ucnv.h
+BUILDLINK_FILES.icu+= include/unicode/ucnv_cb.h
+BUILDLINK_FILES.icu+= include/unicode/ucnv_err.h
+BUILDLINK_FILES.icu+= include/unicode/ucol.h
+BUILDLINK_FILES.icu+= include/unicode/udat.h
+BUILDLINK_FILES.icu+= include/unicode/udata.h
+BUILDLINK_FILES.icu+= include/unicode/uloc.h
+BUILDLINK_FILES.icu+= include/unicode/umachine.h
+BUILDLINK_FILES.icu+= include/unicode/umisc.h
+BUILDLINK_FILES.icu+= include/unicode/umsg.h
+BUILDLINK_FILES.icu+= include/unicode/unicode.h
+BUILDLINK_FILES.icu+= include/unicode/unifilt.h
+BUILDLINK_FILES.icu+= include/unicode/unifltlg.h
+BUILDLINK_FILES.icu+= include/unicode/uniset.h
+BUILDLINK_FILES.icu+= include/unicode/unistr.h
+BUILDLINK_FILES.icu+= include/unicode/unitohex.h
+BUILDLINK_FILES.icu+= include/unicode/unorm.h
+BUILDLINK_FILES.icu+= include/unicode/unum.h
+BUILDLINK_FILES.icu+= include/unicode/urep.h
+BUILDLINK_FILES.icu+= include/unicode/ures.h
+BUILDLINK_FILES.icu+= include/unicode/ushape.h
+BUILDLINK_FILES.icu+= include/unicode/ustdio.h
+BUILDLINK_FILES.icu+= include/unicode/ustring.h
+BUILDLINK_FILES.icu+= include/unicode/utf.h
+BUILDLINK_FILES.icu+= include/unicode/utf16.h
+BUILDLINK_FILES.icu+= include/unicode/utf32.h
+BUILDLINK_FILES.icu+= include/unicode/utf8.h
+BUILDLINK_FILES.icu+= include/unicode/utrans.h
+BUILDLINK_FILES.icu+= include/unicode/utypes.h
+BUILDLINK_FILES.icu+= lib/icu/1.7/Makefile.inc
+BUILDLINK_FILES.icu+= lib/icu/1.7/lib*
+BUILDLINK_FILES.icu+= lib/icu/Makefile.inc
+BUILDLINK_FILES.icu+= lib/icu/current/Makefile.inc
+BUILDLINK_FILES.icu+= lib/icu/current/lib*
+BUILDLINK_FILES.icu+= lib/libicui18n.*
+BUILDLINK_FILES.icu+= lib/libicutoolutil.*
+BUILDLINK_FILES.icu+= lib/libicuuc.*
+BUILDLINK_FILES.icu+= lib/libustdio.*
+
+
+BUILDLINK_TARGETS+= icu-buildlink
+
+icu-buildlink: _BUILDLINK_USE
+
+.endif # ICU_BUILDLINK2_MK