mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
Switch to GNOMENG, use REINPLACE.
This commit is contained in:
parent
b18f2651ac
commit
7ab19ba8cd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=65365
@ -17,31 +17,29 @@ MAINTAINER= netchild@FreeBSD.org
|
||||
|
||||
LIB_DEPENDS= gdk_pixbuf.2:${PORTSDIR}/graphics/gdk-pixbuf/
|
||||
|
||||
# GNOME parts aren't prefix safe, the get installed into "gnome-config --prefix"
|
||||
# GNOME parts aren't prefix safe, they install into "gnome-config --prefix"
|
||||
USE_X_PREFIX= yes
|
||||
USE_GNOMENG= yes
|
||||
WANT_GNOME= yes
|
||||
USE_GMAKE= yes
|
||||
USE_REINPLACE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ENV= CFLAGS="${CFLAGS}" CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LIBS="-L${LOCALBASE}/lib"
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(HAVE_GNOME)
|
||||
USE_GNOMECTRL= yes
|
||||
.if ${HAVE_GNOME:Mlibcapplet} != ""
|
||||
USE_GNOME+= gnomeprefix gnomehack libcapplet
|
||||
PKGNAMESUFFIX= -gnome
|
||||
.else
|
||||
USE_GTK= yes
|
||||
.endif
|
||||
|
||||
MAN1= chbg.1
|
||||
|
||||
pre-patch:
|
||||
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
|
||||
post-patch:
|
||||
@${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\)/gnome/|\$\(datadir\)/|g ; \
|
||||
s|\$\(GNOME_PREFIX\)/share/control-center|\$\(GNOME_PREFIX\)/share/gnome/control-center|g; \
|
||||
s|\$\(GNOME_PREFIX\)/share/pixmaps|\$\(GNOME_PREFIX\)/share/gnome/pixmaps|g; \
|
||||
s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user