diff options
author | cheusov <cheusov> | 2011-05-28 09:48:07 +0000 |
---|---|---|
committer | cheusov <cheusov> | 2011-05-28 09:48:07 +0000 |
commit | 2c92d71bbb3a70d9d4f8b500b3d2f70ec4ee3785 (patch) | |
tree | 6579ff90418028018bff18653f115616fd88f803 /devel | |
parent | 13d30f5b8e339d6b87bc7cc9d3ca86b602794deb (diff) | |
download | pkgsrc-2c92d71bbb3a70d9d4f8b500b3d2f70ec4ee3785.tar.gz |
Regexp library from heirloom collection aware of utf-8
Diffstat (limited to 'devel')
-rw-r--r-- | devel/libuxre/DESCR | 3 | ||||
-rw-r--r-- | devel/libuxre/Makefile | 49 | ||||
-rw-r--r-- | devel/libuxre/PLIST | 5 | ||||
-rw-r--r-- | devel/libuxre/buildlink3.mk | 13 |
4 files changed, 70 insertions, 0 deletions
diff --git a/devel/libuxre/DESCR b/devel/libuxre/DESCR new file mode 100644 index 00000000000..381e2fb6287 --- /dev/null +++ b/devel/libuxre/DESCR @@ -0,0 +1,3 @@ +This package provides libuxre library. +It is a POSIX-compatible regexp engine based on the code +released as Open Source by Caldera. diff --git a/devel/libuxre/Makefile b/devel/libuxre/Makefile new file mode 100644 index 00000000000..439f02ac9e0 --- /dev/null +++ b/devel/libuxre/Makefile @@ -0,0 +1,49 @@ +# $NetBSD: Makefile,v 1.1.1.1 2011/05/28 09:48:07 cheusov Exp $ + +PKGNAME= libuxre-${HEIRLOOM_VER} +CATEGORIES= devel + +MAINTAINER= cheusov@tut.by +COMMENT= POSIX compatible regular expression library + +LICENSE= gnu-lgpl-v2 + +USE_LIBTOOL= yes + +INSTALLATION_DIRS+= include/uxre share/doc/${PKGBASE} lib + +DOC_FILES= NOTES COPYING.LGPL +DOC_DIR= ${PREFIX}/share/doc/${PKGBASE} + +SRCFILES= onefile regfree regerror btowc +LOFILES= onefile.lo regfree.lo regerror.lo btowc.lo + +NEED_PRE_BUILD= 0 + +.include "../../sysutils/heirloom-doc/Makefile.common" + +DESCR_SRC+= ${.CURDIR}/DESCR + +pre-build: + cd ${WRKSRC} && \ + env ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} -f makefile makefiles + +do-build: + set -e; \ + cd ${WRKSRC}/libuxre; \ + for i in ${SRCFILES}; do \ + ${LIBTOOL} --mode=compile \ + ${CC} -o "$${i}".o -c ${CFLAGS} -I. "$${i}".c; \ + done; \ + ${LIBTOOL} --mode=link ${CC} -o libuxre.la \ + -rpath ${PREFIX}/lib -version-info 0:0 ${LOFILES} + +do-install: + ${LIBTOOL} --mode=install ${INSTALL_DATA} ${WRKSRC}/libuxre/libuxre.la ${DESTDIR}${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/libuxre/regex.h ${DESTDIR}${PREFIX}/include/uxre +.for i in ${DOC_FILES} + ${INSTALL_DATA} ${WRKSRC}/libuxre/"${i}" ${DESTDIR}${DOC_DIR} +.endfor + +.include "../../devel/heirloom-libcommon/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/libuxre/PLIST b/devel/libuxre/PLIST new file mode 100644 index 00000000000..47fb0da53e8 --- /dev/null +++ b/devel/libuxre/PLIST @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2011/05/28 09:48:07 cheusov Exp $ +include/uxre/regex.h +lib/libuxre.la +share/doc/${PKGBASE}/COPYING.LGPL +share/doc/${PKGBASE}/NOTES diff --git a/devel/libuxre/buildlink3.mk b/devel/libuxre/buildlink3.mk new file mode 100644 index 00000000000..95078b15df0 --- /dev/null +++ b/devel/libuxre/buildlink3.mk @@ -0,0 +1,13 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2011/05/28 09:48:07 cheusov Exp $ + +BUILDLINK_TREE+= libuxre + +.if !defined(LIBUXRE_BUILDLINK3_MK) +LIBUXRE_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.libuxre+= libuxre>=060122 +BUILDLINK_PKGSRCDIR.libuxre?= ../../devel/libuxre +BUILDLINK_INCDIRS.libuxre+= include/uxre +.endif # LIBUXRE_BUILDLINK3_MK + +BUILDLINK_TREE+= -libuxre |