Add USE_LDCONFIG in wine port Fix: rm files/wine.sh.in PORTNAME= wine PORTVERSION= 0.9.12 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= emulators MASTER_SITES= http://ibiblio.org/pub/linux/system/emulators/wine/ \ @@ -25,6 +26,7 @@ CONFIGURE_ENV= CPPFLAGS=-I${PREFIX}/include LDFLAGS=-L${PREFIX}/lib LIBS=-Wl,-rpath,${PREFIX}/lib/wine INSTALLS_SHLIB= yes LDCONFIG_DIRS= %%PREFIX%%/lib/wine +USE_LDCONFIG= ${PREFIX}/lib/wine MAN1= widl.1 wine.1 winebuild.1 winedbg.1 winedump.1 winegcc.1 \ winemaker.1 wineserver.1 wmc.1 wrc.1 ONLY_FOR_ARCHS= i386 @@ -34,10 +36,11 @@ USE_GL= yes USE_XPM= yes -SUB_FILES= pkg-message wine.sh +SUB_FILES= pkg-message PKGMESSAGE= ${WRKDIR}/pkg-message .include <bsd.port.pre.mk> +.include "${PORTSDIR}/misc/ldconfig_compat/bsd.ldconfig.mk" .if ${OSVERSION} < 503000 IGNORE= fails to work on versions of FreeBSD before 5.3 (due to problems with threading support) @@ -46,8 +49,7 @@ pre-build: cd ${WRKSRC} && make depend -post-install: - -@${MKDIR} ${PREFIX}/etc/rc.d +post-install: install-ldconfig-file ${RM} ${PREFIX}/man/man1/wineg++.1 .if !defined(NOPORTDOCS) -@${MKDIR} ${DOCSDIR} @@ -60,7 +62,6 @@ ${INSTALL_DATA} ${WRKSRC}/tools/winedump/README ${DOCSDIR}/README.winedump .endif @${INSTALL_SCRIPT} ${WRKSRC}/tools/bug_report.pl ${PREFIX}/lib/wine - @${INSTALL_SCRIPT} ${WRKDIR}/wine.sh ${PREFIX}/etc/rc.d/000.wine.sh @${ECHO} @${CAT} ${PKGMESSAGE} How-To-Repeat: Apply the patch.
Responsible Changed From-To: freebsd-ports-bugs->gerald Over to maintainer
State Changed From-To: open->closed Thanks for the patch! One of my peer ports committer (flz) helped review it, and my testing succeeded, so I will install it in a minute. Note that I will omit the PORTREVISION part since from a user's perspective there shouldn't be any visible changes making an update worthwhile (before the next version update).