summaryrefslogtreecommitdiff
path: root/emulators/suse_linux/Makefile.common
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/suse_linux/Makefile.common')
-rw-r--r--emulators/suse_linux/Makefile.common45
1 files changed, 45 insertions, 0 deletions
diff --git a/emulators/suse_linux/Makefile.common b/emulators/suse_linux/Makefile.common
new file mode 100644
index 00000000000..444ac302df2
--- /dev/null
+++ b/emulators/suse_linux/Makefile.common
@@ -0,0 +1,45 @@
+# $NetBSD: Makefile.common,v 1.1 2000/12/16 22:37:32 tron Exp $
+
+MASTER_SITE_SUSE= ftp://ftp.suse.com/pub/suse/i386/6.3/suse/
+
+DIST_SUBDIR?= suse63
+
+WRKSRC?= ${WRKDIR}
+MANCOMPRESSED?= yes
+
+EMULSUBDIR= emul/linux
+EMULDIR= ${PREFIX}/${EMULSUBDIR}
+
+RPM2PKG= ${PREFIX}/sbin/rpm2pkg
+
+# The SuSE Linux packages have circular dependencies.
+LDD?= ${TRUE}
+
+RPM2PKGARGS= -d ${PREFIX} -f ${PLIST_SRC} -p ${EMULSUBDIR}
+.for TEMP in ${RPMIGNOREPATH}
+RPM2PKGARGS+= -i ${TEMP}
+.endfor
+.for TEMP in ${RPMFILES}
+RPM2PKGARGS+= ${DISTDIR}/${DIST_SUBDIR}/${TEMP}
+.endfor
+
+.if !target(do-install)
+do-install:
+ @if [ -f ${PKGDIR}/PLIST ]; then \
+ ${CP} ${PKGDIR}/PLIST ${PLIST_SRC}; \
+ else \
+ ${RM} -f ${PLIST_SRC}; \
+ fi
+ ${RPM2PKG} ${RPM2PKGARGS}
+ @if ${GREP} -q 'lib.*\.so' ${PLIST_SRC}; then \
+ ${ECHO_MSG} "===> [Automatic Linux shared object handling]"; \
+ ${EMULDIR}/sbin/ldconfig -r ${EMULDIR}; \
+ ${ECHO} "@exec %D/${EMULSUBDIR}/sbin/ldconfig -r %D/${EMULSUBDIR}" >>${PLIST_SRC}; \
+ ${ECHO} "@unexec %D/${EMULSUBDIR}/sbin/ldconfig -r %D/${EMULSUBDIR} 2>/dev/null" >>${PLIST_SRC}; \
+ fi
+.endif
+
+show-shlib-type:
+ @${ECHO} linux-${MACHINE_ARCH}
+
+.include "../../mk/bsd.pkg.mk"