mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
Use USE_REINPLACE.
This commit is contained in:
parent
3b95f1a92c
commit
20172aa443
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=63121
@ -26,6 +26,7 @@ USE_XPM= yes
|
||||
USE_GMAKE= yes
|
||||
USE_ESOUND= yes
|
||||
USE_BISON= yes
|
||||
USE_REINPLACE= yes
|
||||
INSTALLS_SHLIB= yes
|
||||
USE_LIBTOOL= yes
|
||||
CONFIGURE_ARGS= --localstatedir=${PREFIX}/share/gnome \
|
||||
@ -37,11 +38,11 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
|
||||
|
||||
pre-patch:
|
||||
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
|
||||
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
|
||||
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
|
||||
@find ${WRKSRC} -name "Makefile.in*" | xargs ${PERL} -pi -e \
|
||||
's|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g ; \
|
||||
s|\$\(libdir\)/pkgconfig|\$\(prefix\)/libdata/pkgconfig|g ; \
|
||||
s|\$\(libdir\)/bonobo/servers|\$\(prefix\)/libdata/bonobo/servers|g'
|
||||
@find ${WRKSRC} -name "Makefile.in*" | xargs ${REINPLACE_CMD} -e \
|
||||
's|[(]datadir[)]/locale|(prefix)/share/locale|g ; \
|
||||
s|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g ; \
|
||||
s|[(]libdir[)]/bonobo/servers|(prefix)/libdata/bonobo/servers|g'
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user