diff options
author | cheusov <cheusov> | 2011-05-28 08:45:14 +0000 |
---|---|---|
committer | cheusov <cheusov> | 2011-05-28 08:45:14 +0000 |
commit | cb39a39c8ae98dc670b81c523ea29acb47c8a3e1 (patch) | |
tree | 2a473315495b30a39cf64f64fbe5338067ccf051 /devel | |
parent | d1cd094abde6b88d0ecb7092831ba01a2de8be0b (diff) | |
download | pkgsrc-cb39a39c8ae98dc670b81c523ea29acb47c8a3e1.tar.gz |
heirloom part
Diffstat (limited to 'devel')
-rw-r--r-- | devel/heirloom-libcommon/DESCR | 2 | ||||
-rw-r--r-- | devel/heirloom-libcommon/Makefile | 42 | ||||
-rw-r--r-- | devel/heirloom-libcommon/PLIST | 23 | ||||
-rw-r--r-- | devel/heirloom-libcommon/buildlink3.mk | 14 |
4 files changed, 81 insertions, 0 deletions
diff --git a/devel/heirloom-libcommon/DESCR b/devel/heirloom-libcommon/DESCR new file mode 100644 index 00000000000..cbb347454f0 --- /dev/null +++ b/devel/heirloom-libcommon/DESCR @@ -0,0 +1,2 @@ +This package provides 'libcommon' library common +to most other heirloom utilities. diff --git a/devel/heirloom-libcommon/Makefile b/devel/heirloom-libcommon/Makefile new file mode 100644 index 00000000000..2532ae5a61f --- /dev/null +++ b/devel/heirloom-libcommon/Makefile @@ -0,0 +1,42 @@ +# $NetBSD: Makefile,v 1.1.1.1 2011/05/28 08:45:14 cheusov Exp $ + +PKGNAME= heirloom-libcommon-${HEIRLOOM_VER} +CATEGORIES= devel + +DEPENDS+= heirloom-doc-${HEIRLOOM_VER}:../../sysutils/heirloom-doc + +MAKE_FLAGS+= SUBDIRS="libcommon" + +INSTALLATION_DIRS+= include/heirloom lib + +HEADERS_DIR= ${PREFIX}/include/heirloom + +HEADERS= _alloca.h _malloc.h _utmpx.h alloca.h asciitype.h atoll.h \ + blank.h getdir.h iblok.h malloc.h mbtowi.h memalign.h \ + msgselect.h oblok.h pathconf.h pfmt.h regexp.h regexpr.h \ + sfile.h sigset.h utmpx.h + +PLIST_SUBST+= NO_ALLOCA_H= +PLIST_SUBST+= NOMALLOC_H= +PLIST_SUBST+= NOUTMPX_H= + +.include "../../sysutils/heirloom-doc/Makefile.common" + +DESCR_SRC+= DESCR + +.if ${OPSYS} == "Linux" || ${OPSYS} == "SunOS" +PLIST_SUBST+= "NO_ALLOCA_H=@comment " +PLIST_SUBST+= "NOMALLOC_H=@comment " +PLIST_SUBST+= "NOUTMPX_H=@comment " +.endif + +do-install: +.for i in ${HEADERS} + if ${TEST} -r ${WRKSRC}/libcommon/${i}; then \ + ${INSTALL_DATA} ${WRKSRC}/libcommon/${i} ${DESTDIR}${HEADERS_DIR}; \ + fi +.endfor + ${INSTALL_DATA} ${WRKSRC}/libcommon/libcommon.a \ + ${DESTDIR}${PREFIX}/lib/libheirloomcommon.a + +.include "../../mk/bsd.pkg.mk" diff --git a/devel/heirloom-libcommon/PLIST b/devel/heirloom-libcommon/PLIST new file mode 100644 index 00000000000..f8fc8a8d2a3 --- /dev/null +++ b/devel/heirloom-libcommon/PLIST @@ -0,0 +1,23 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2011/05/28 08:45:14 cheusov Exp $ +include/heirloom/_alloca.h +include/heirloom/_malloc.h +include/heirloom/_utmpx.h +${NO_ALLOCA_H}include/heirloom/alloca.h +include/heirloom/asciitype.h +include/heirloom/atoll.h +include/heirloom/blank.h +include/heirloom/getdir.h +include/heirloom/iblok.h +${NOMALLOC_H}include/heirloom/malloc.h +include/heirloom/mbtowi.h +include/heirloom/memalign.h +include/heirloom/msgselect.h +include/heirloom/oblok.h +include/heirloom/pathconf.h +include/heirloom/pfmt.h +include/heirloom/regexp.h +include/heirloom/regexpr.h +include/heirloom/sfile.h +include/heirloom/sigset.h +${NOUTMPX_H}include/heirloom/utmpx.h +lib/libheirloomcommon.a diff --git a/devel/heirloom-libcommon/buildlink3.mk b/devel/heirloom-libcommon/buildlink3.mk new file mode 100644 index 00000000000..3bd0588796b --- /dev/null +++ b/devel/heirloom-libcommon/buildlink3.mk @@ -0,0 +1,14 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2011/05/28 08:45:14 cheusov Exp $ + +BUILDLINK_TREE+= heirloom-libcommon + +.if !defined(HEIRLOOM_LIBCOMMON_BUILDLINK3_MK) +HEIRLOOM_LIBCOMMON_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.heirloom-libcommon+= heirloom-libcommon>=070227 +BUILDLINK_PKGSRCDIR.heirloom-libcommon?= ../../devel/heirloom-libcommon +BUILDLINK_DEPMETHOD.heirloom-libcommon?= build +BUILDLINK_INCDIRS.heirloom-libcommon+= include/heirloom +.endif # HEIRLOOM_LIBCOMMON_BUILDLINK3_MK + +BUILDLINK_TREE+= -heirloom-libcommon |