From a945e1d7e263701f254c4cf42493e25b0fe88d99 Mon Sep 17 00:00:00 2001 From: itojun Date: Wed, 1 Nov 2000 16:03:26 +0000 Subject: librpm (misc/rpm) requires libintl.a. use USE_LIBINTL. From: bernd@arresum.inka.de (Bernd Ernesti) --- emulators/suse_base/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'emulators/suse_base') 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' \ -- cgit v1.2.3