Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/bsd.port.mk
Show First 20 Lines • Show All 1,859 Lines • ▼ Show 20 Lines | |||||
.if defined(USE_LDCONFIG) && ${USE_LDCONFIG:tl} == "yes" | .if defined(USE_LDCONFIG) && ${USE_LDCONFIG:tl} == "yes" | ||||
USE_LDCONFIG= ${PREFIX}/lib | USE_LDCONFIG= ${PREFIX}/lib | ||||
.endif | .endif | ||||
.if defined(USE_LDCONFIG32) && ${USE_LDCONFIG32:tl} == "yes" | .if defined(USE_LDCONFIG32) && ${USE_LDCONFIG32:tl} == "yes" | ||||
IGNORE= has USE_LDCONFIG32 set to yes, which is not correct | IGNORE= has USE_LDCONFIG32 set to yes, which is not correct | ||||
.endif | .endif | ||||
.if defined(USE_LDCONFIG) || defined(USE_LDCONFIG32) | |||||
.if defined(USE_LINUX_PREFIX) | |||||
PLIST_FILES+= "@ldconfig-linux ${LINUXBASE}" | |||||
.else | |||||
PLIST_FILES+= "@ldconfig" | |||||
.endif | |||||
.endif | |||||
PKG_IGNORE_DEPENDS?= 'this_port_does_not_exist' | PKG_IGNORE_DEPENDS?= 'this_port_does_not_exist' | ||||
.if defined(_DESTDIR_VIA_ENV) | .if defined(_DESTDIR_VIA_ENV) | ||||
MAKE_ENV+= ${DESTDIRNAME}=${STAGEDIR} | MAKE_ENV+= ${DESTDIRNAME}=${STAGEDIR} | ||||
.else | .else | ||||
MAKE_ARGS+= ${DESTDIRNAME}=${STAGEDIR} | MAKE_ARGS+= ${DESTDIRNAME}=${STAGEDIR} | ||||
.endif | .endif | ||||
▲ Show 20 Lines • Show All 2,573 Lines • ▼ Show 20 Lines | @if [ -f ${PLIST} ]; then \ | ||||
${SED} ${PLIST_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} ${PLIST} >> ${TMPPLIST}; \ | ${SED} ${PLIST_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} ${PLIST} >> ${TMPPLIST}; \ | ||||
fi | fi | ||||
.endif | .endif | ||||
.for dir in ${PLIST_DIRS} | .for dir in ${PLIST_DIRS} | ||||
@${ECHO_CMD} ${dir} | ${SED} ${PLIST_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} -e 's,^,@dir ,' >> ${TMPPLIST} | @${ECHO_CMD} ${dir} | ${SED} ${PLIST_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} -e 's,^,@dir ,' >> ${TMPPLIST} | ||||
.endfor | .endfor | ||||
.if defined(USE_LINUX_PREFIX) | |||||
.if defined(USE_LDCONFIG) | |||||
@${ECHO_CMD} '@preexec [ -n "`/sbin/sysctl -q compat.linux.osrelease`" ] || ( echo "Cannot install package: kernel missing Linux support"; exit 1 )' >> ${TMPPLIST} | |||||
@${ECHO_CMD} "@postexec ${LINUXBASE}/sbin/ldconfig" >> ${TMPPLIST} | |||||
@${ECHO_CMD} "@postunexec ${LINUXBASE}/sbin/ldconfig" >> ${TMPPLIST} | |||||
.endif | |||||
.else | |||||
.if defined(USE_LDCONFIG) || defined(USE_LDCONFIG32) | |||||
.if !defined(INSTALL_AS_USER) | |||||
@${ECHO_CMD} "@postexec /usr/sbin/service ldconfig restart > /dev/null" >> ${TMPPLIST} | |||||
@${ECHO_CMD} "@postunexec /usr/sbin/service ldconfig restart > /dev/null" >> ${TMPPLIST} | |||||
.else | |||||
@${ECHO_CMD} "@postexec /usr/sbin/service ldconfig restart > /dev/null || ${TRUE}" >> ${TMPPLIST} | |||||
@${ECHO_CMD} "@postunexec /usr/sbin/service ldconfig restart > /dev/null || ${TRUE}" >> ${TMPPLIST} | |||||
.endif | |||||
.endif | |||||
.endif | |||||
.endif | .endif | ||||
${TMPPLIST}: | ${TMPPLIST}: | ||||
@cd ${.CURDIR} && ${MAKE} generate-plist | @cd ${.CURDIR} && ${MAKE} generate-plist | ||||
.for _type in EXAMPLES DOCS | .for _type in EXAMPLES DOCS | ||||
.if !empty(_REALLY_ALL_POSSIBLE_OPTIONS:M${_type}) | .if !empty(_REALLY_ALL_POSSIBLE_OPTIONS:M${_type}) | ||||
.if !target(add-plist-${_type:tl}) | .if !target(add-plist-${_type:tl}) | ||||
▲ Show 20 Lines • Show All 884 Lines • Show Last 20 Lines |