summaryrefslogtreecommitdiff
path: root/pkgtools/rpm2pkg
diff options
context:
space:
mode:
authorjlam <jlam>2001-06-18 10:26:47 +0000
committerjlam <jlam>2001-06-18 10:26:47 +0000
commit80d2f28644233b751f4b033891bb4d0ce5a5b28c (patch)
tree24768079b5550963fe5bec350355ca925cf2ba1e /pkgtools/rpm2pkg
parent169cd9caab1f19787f15ace9e3a4c5e273184d99 (diff)
downloadpkgsrc-80d2f28644233b751f4b033891bb4d0ce5a5b28c.tar.gz
Convert to use buildlink.mk files. Add proper dependency on zlib if
needed.
Diffstat (limited to 'pkgtools/rpm2pkg')
-rw-r--r--pkgtools/rpm2pkg/Makefile24
1 files changed, 11 insertions, 13 deletions
diff --git a/pkgtools/rpm2pkg/Makefile b/pkgtools/rpm2pkg/Makefile
index ac0bcf2f242..638e7741e10 100644
--- a/pkgtools/rpm2pkg/Makefile
+++ b/pkgtools/rpm2pkg/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2001/03/27 03:20:13 hubertf Exp $
+# $NetBSD: Makefile,v 1.7 2001/06/18 10:26:47 jlam Exp $
DISTNAME= rpm2pkg-1.2
CATEGORIES= pkgtools
@@ -9,26 +9,24 @@ MAINTAINER= tron@netbsd.org
HOMEPAGE= ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/Packages.txt
COMMENT= Convert RPM archives to NetBSD packages
-BUILD_DEPENDS+= rpm-*:../../misc/rpm
-
CONFLICTS+= suse-base<=6.4
NO_CHECKSUM= YES
WRKSRC= ${WRKDIR}
-RPMLIB= ${LOCALBASE}/lib/librpm.a
+.include "../../devel/gettext-lib/buildlink.mk"
+.include "../../devel/zlib/buildlink.mk"
+.include "../../misc/rpm/buildlink.mk"
+
+#USE_LIBINTL= YES
+RPMLIB= ${BUILDLINK_DIR}/lib/librpm.a
-# librpm.a needs libintl.a
-USE_LIBINTL= YES
-.if exists(/usr/include/libintl.h)
-LIBINTL= -lintl
-.else
-LIBINTL= -L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib -lintl
-.endif
+CFLAGS+= -I${BUILDLINK_DIR}/include/rpm
+LIBS= ${RPMLIB} -lintl -lz
do-build:
- ${CC} ${FILESDIR}/rpm2pkg.c ${CFLAGS} -I${PREFIX}/include/rpm \
- ${RPMLIB} -lz ${LIBINTL} -o ${WRKSRC}/rpm2pkg
+ ${CC} ${FILESDIR}/rpm2pkg.c ${CFLAGS} ${LDFLAGS} ${LIBS} \
+ -o ${WRKSRC}/rpm2pkg
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/rpm2pkg ${PREFIX}/sbin