d928b8f223
make all packages that use linux emulation include bsd.pkg.mk as the last files just like any normal package.
46 lines
1.2 KiB
Text
46 lines
1.2 KiB
Text
# $NetBSD: Makefile.common,v 1.4 2003/03/26 04:05:49 jschauma Exp $
|
|
|
|
SUSE_VERSION= 6.4
|
|
|
|
MASTER_SITE_SUSE= ftp://ftp.suse.com/pub/suse/discontinued/i386/${SUSE_VERSION}/suse/
|
|
|
|
DIST_SUBDIR?= suse${SUSE_VERSION:S/.//}
|
|
|
|
WRKSRC?= ${WRKDIR}
|
|
MANCOMPRESSED?= yes
|
|
|
|
EMULSUBDIR= emul/linux
|
|
EMULDIR= ${PREFIX}/${EMULSUBDIR}
|
|
|
|
RPM2PKG= ${PREFIX}/sbin/rpm2pkg
|
|
BUILD_DEPENDS+= rpm2pkg>=1.3:../../pkgtools/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}
|