Fix missing library problem when the linker enforces explicit linking

PR:		192062
This commit is contained in:
Tijl Coosemans 2014-08-27 10:06:11 +00:00
parent 9d3114adc8
commit 155f4e57bc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=366298
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ LIB_DEPENDS= libtlen.so:${PORTSDIR}/polish/libtlen
USES= pkgconfig
USE_GNOME= gtk20
GNU_CONFIGURE= yes
USE_XORG= xscrnsaver
USE_XORG= x11 xscrnsaver
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
WRKSRC= ${WRKDIR}/TleenX2-${PORTVERSION}
@ -25,7 +25,7 @@ PORTDOCS= README gg.txt sms.txt
post-patch:
@${REINPLACE_CMD} \
-e '/^tleenx2_LDADD =/,+1s,/usr/X11R6/lib/libXss.a,-lXss,' \
-e '/^tleenx2_LDADD =/,+1s,/usr/X11R6/lib/libXss.a,-lXss -lX11,' \
-e 's,/usr/X11R6/lib/libXss.a,,' \
${WRKSRC}/src/Makefile.in
@${REINPLACE_CMD} 's,/usr/local,${LOCALBASE},g; s,gcc,${CC},' \