summaryrefslogtreecommitdiff
path: root/pkgtools/rpm2pkg
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-10-20 23:23:53 +0000
committerjlam <jlam@pkgsrc.org>2002-10-20 23:23:53 +0000
commit295f3b814a1c7eed825745ce1295ed93f0ed0010 (patch)
tree1a9cff799ffceaaf27d188e5888202ea0e3fd63f /pkgtools/rpm2pkg
parent26eaee1117e22163e43ada046f9e109e473dcd45 (diff)
downloadpkgsrc-295f3b814a1c7eed825745ce1295ed93f0ed0010.tar.gz
Use BUILDLINK_CPPFLAGS.rpm and rely on buildlink2 to make "-lrpm" resolve
to the correct library.
Diffstat (limited to 'pkgtools/rpm2pkg')
-rw-r--r--pkgtools/rpm2pkg/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgtools/rpm2pkg/Makefile b/pkgtools/rpm2pkg/Makefile
index 93d0d4f5257..e2a6f31c357 100644
--- a/pkgtools/rpm2pkg/Makefile
+++ b/pkgtools/rpm2pkg/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2002/09/19 02:46:07 jlam Exp $
+# $NetBSD: Makefile,v 1.15 2002/10/20 23:23:53 jlam Exp $
DISTNAME= rpm2pkg-1.2
CATEGORIES= pkgtools
@@ -15,10 +15,8 @@ USE_BUILDLINK2= YES
NO_CHECKSUM= YES
WRKSRC= ${WRKDIR}
-RPMLIB= ${BUILDLINK_PREFIX.rpm}/lib/librpm.a
-
-CFLAGS+= -I${BUILDLINK_PREFIX.rpm}/include/rpm
-LIBS= ${RPMLIB} -lintl -lz
+CFLAGS+= ${BUILDLINK_CPPFLAGS.rpm}
+LIBS= -lrpm -lintl -lz
do-build:
${BUILDLINK_CC} ${CFLAGS} ${LDFLAGS} -o ${WRKSRC}/rpm2pkg \