Bug 95757 - [patch] emulators/wine add USE_LDCONFIG mechanism
Summary: [patch] emulators/wine add USE_LDCONFIG mechanism
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Gerald Pfeifer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-14 18:50 UTC by Alex Kozlov
Modified: 2006-04-16 21:07 UTC (History)
0 users

See Also:


Attachments
file.diff (137 bytes, patch)
2006-04-14 18:50 UTC, Alex Kozlov
no flags Details | Diff
file.diff (263 bytes, patch)
2006-04-14 18:50 UTC, Alex Kozlov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Kozlov 2006-04-14 18:50:12 UTC
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.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-04-14 18:52:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gerald

Over to maintainer
Comment 2 Gerald Pfeifer freebsd_committer freebsd_triage 2006-04-16 21:05:32 UTC
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).