summaryrefslogtreecommitdiff
path: root/emulators/suse_base
diff options
context:
space:
mode:
authoritojun <itojun@pkgsrc.org>2000-11-01 16:03:26 +0000
committeritojun <itojun@pkgsrc.org>2000-11-01 16:03:26 +0000
commita945e1d7e263701f254c4cf42493e25b0fe88d99 (patch)
tree4da34abfe83504d5505d4e38dcd6d399cdb907dd /emulators/suse_base
parentd81dfddb6436502f0bf4aaf130551a79d2fd38ef (diff)
downloadpkgsrc-a945e1d7e263701f254c4cf42493e25b0fe88d99.tar.gz
librpm (misc/rpm) requires libintl.a. use USE_LIBINTL.
From: bernd@arresum.inka.de (Bernd Ernesti)
Diffstat (limited to 'emulators/suse_base')
-rw-r--r--emulators/suse_base/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/emulators/suse_base/Makefile b/emulators/suse_base/Makefile
index 07b8e30b33d..182d8da648a 100644
--- a/emulators/suse_base/Makefile
+++ b/emulators/suse_base/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2000/08/25 00:20:22 jlam Exp $
+# $NetBSD: Makefile,v 1.13 2000/11/01 16:03:26 itojun Exp $
DISTNAME= suse_base-6.3
CATEGORIES= emulators
@@ -15,6 +15,12 @@ ONLY_FOR_PLATFORM= NetBSD-*-i386
EXTRACT_ONLY= # empty
PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC
+USE_LIBINTL= yes
+.if exists(/usr/include/libintl.h)
+LIBINTL= -lintl
+.else
+LIBINTL= -L${LOCALBASE} -lintl
+.endif
# Careful! The ncurses-p1.rpm file doesn't come from SuSE, quite.
# It's been rebuilt to use seteuid() where an ill-advised SuSE patch
@@ -32,7 +38,7 @@ RPMLIB= ${LOCALBASE}/lib/librpm.a
do-build:
${CC} ${FILESDIR}/rpm2pkg.c ${CFLAGS} -I${PREFIX}/include/rpm \
- ${RPMLIB} -lz -o ${WRKSRC}/rpm2pkg
+ ${RPMLIB} -lz ${LIBINTL} -o ${WRKSRC}/rpm2pkg
@for FILE in ${PKGDIR}/PLIST ${SCRIPTDIR}/*.sh; do \
${SED} -e 's#@@EMULDIR@@#${EMULDIR}#g' \
-e 's#@@EMULSUBDIR@@#${EMULSUBDIR}#g' \