- Makefile cleanup

- Get rid of USE_X_PREFIX.

Submitted by:	Dmitry Marakasov <amdmi3@amdmi3.ru> (maintainer)
This commit is contained in:
Martin Wilke 2008-03-20 17:56:36 +00:00
parent 12c9856f98
commit f537e495f6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=209462

View file

@ -8,7 +8,7 @@
PORTNAME= xbill
PORTVERSION= 2.1
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= http://www.xbill.org/download/ \
http://www.amdmi3.ru/distfiles/
@ -16,15 +16,37 @@ MASTER_SITES= http://www.xbill.org/download/ \
MAINTAINER= amdmi3@amdmi3.ru
COMMENT= Save your computers from the evil clutches of Bill
SCORES_DIR?= ${DATADIR}/scores
USE_X_PREFIX= yes
HAS_CONFIGURE= yes
USE_XPM= yes
USE_GNOME= gtk12
CONFIGURE_ENV+= PREFIX=${PREFIX}
CONFIGURE_ARGS+=--localstatedir=${SCORES_DIR}
GNU_CONFIGURE= yes
WANT_GNOME= yes
CONFIGURE_ARGS= --localstatedir=${SCORES_DIR}
MAN6= xbill.6
.include <bsd.port.mk>
SCORES_DIR?= ${DATADIR}/scores
OPTIONS= ATHENA "Build with Athena widget set" off \
GTK "Build with GTK widget set" on \
MOTIF "Build with Motif widget set" off
.include <bsd.port.pre.mk>
.if defined(WITH_ATHENA) && !defined(WITH_GTK) && !defined(WITH_MOTIF)
CONFIGURE_ARGS+= --disable-gtk --disable-motif
USE_XORG= xaw xmu xt x11 sm ice
.elif !defined(WITH_ATHENA) && defined(WITH_GTK) && !defined(WITH_MOTIF)
CONFIGURE_ARGS+= --disable-athena --disable-motif
USE_GNOME= gtk12
USE_XORG= sm ice
.elif !defined(WITH_ATHENA) && !defined(WITH_GTK) && defined(WITH_MOTIF)
CONFIGURE_ARGS+= --disable-athena --disable-gtk
USE_XORG= xt x11 sm ice xpm
USE_MOTIF= yes
.else
IGNORE= can't be build: please rerun 'make config' and chose exactly one widget set
.endif
post-patch:
@${REINPLACE_CMD} -e '/WIDGET_LIBS=/ s|-lXm"$$|-lXm -lXpm"|' \
${WRKSRC}/configure
.include <bsd.port.post.mk>