summaryrefslogtreecommitdiff
path: root/emulators/suse_linux
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-06-19 23:27:34 +0000
committerjlam <jlam@pkgsrc.org>2006-06-19 23:27:34 +0000
commitded1793fc0c090218d18a3c8cd101473165dfd58 (patch)
treebfb8838cf691d85db3fc95bbbd2f73a808fd3e40 /emulators/suse_linux
parent5e59ad964fccbb28df1b7e2cebedda05d7d55751 (diff)
downloadpkgsrc-ded1793fc0c090218d18a3c8cd101473165dfd58.tar.gz
Cleanup fallout from {DE,}INSTALL_SRC removal: rewrite the INSTALL
script to be of the format expected by the pkginstall framework and remove the explicit invocation of the INSTALL script from the post-install target. Also, split out the important text from the INSTALL script and put it into a MESSAGE file. Also, remove the unused show-shlib-type target.
Diffstat (limited to 'emulators/suse_linux')
-rw-r--r--emulators/suse_linux/Makefile.common15
1 files changed, 11 insertions, 4 deletions
diff --git a/emulators/suse_linux/Makefile.common b/emulators/suse_linux/Makefile.common
index e74ded30822..88cbe686c1d 100644
--- a/emulators/suse_linux/Makefile.common
+++ b/emulators/suse_linux/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.22 2005/12/12 14:43:25 joerg Exp $
+# $NetBSD: Makefile.common,v 1.23 2006/06/19 23:27:34 jlam Exp $
.include "../../emulators/suse_linux/vars.mk"
.include "../../emulators/suse_linux/arch.mk"
@@ -24,6 +24,16 @@ MANCOMPRESSED?= yes
EMULSUBDIR= emul/linux
EMULDIR= ${PREFIX}/${EMULSUBDIR}
+# Set location of OPSYS-specific emulation directory
+.if ${OPSYS} == "NetBSD"
+OPSYS_EMULDIR= /${EMULSUBDIR}
+.elif (${OPSYS} == "FreeBSD") || (${OPSYS} == "DragonFly")
+OPSYS_EMULDIR= /compat/${EMULSUBDIR:T}
+.else
+OPSYS_EMULDIR= /${EMULSUBDIR}
+.endif
+FILES_SUBST+= OPSYS_EMULDIR=${OPSYS_EMULDIR:Q}
+
RPM2PKG= ${PREFIX}/sbin/rpm2pkg
BUILD_DEPENDS+= rpm2pkg>=2.1:../../pkgtools/rpm2pkg
@@ -59,6 +69,3 @@ do-install:
${ECHO} "@unexec %D/${EMULSUBDIR}/sbin/ldconfig -r %D/${EMULSUBDIR} 2>/dev/null" >>${PLIST_SRC}; \
fi
.endif
-
-show-shlib-type:
- @${ECHO} linux-${MACHINE_ARCH}