diff options
Diffstat (limited to 'games/xpuyopuyo/Makefile')
-rw-r--r-- | games/xpuyopuyo/Makefile | 46 |
1 files changed, 16 insertions, 30 deletions
diff --git a/games/xpuyopuyo/Makefile b/games/xpuyopuyo/Makefile index 8a0b4a30ca55..133b0af6ca7f 100644 --- a/games/xpuyopuyo/Makefile +++ b/games/xpuyopuyo/Makefile @@ -13,47 +13,33 @@ MASTER_SITES= http://chaos2.org/xpuyopuyo/ \ MAINTAINER= yinjieh@csie.nctu.edu.tw -LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 -.if defined(WITH_GNOME) -LIB_DEPENDS+= gnome.4:${PORTSDIR}/x11/gnomelibs -.endif -.if defined(WITH_MUSIC) -LIB_DEPENDS+= mikmod.2:${PORTSDIR}/audio/libmikmod -.endif - -GLIB_CONFIG?= ${LOCALBASE}/bin/glib12-config -GTK_CONFIG?= ${X11BASE}/bin/gtk12-config - USE_GMAKE= yes USE_X_PREFIX= yes USE_XPM= yes +USE_GTK= yes +WANT_GNOME= yes USE_AUTOCONF= yes -CONFIGURE_ENV= GTK_CONFIG="${GTK_CONFIG}" \ - GLIB_CONFIG="${GLIB_CONFIG}" -.if defined(WITH_GNOME) -CONFIGURE_ARGS+=--with-gnome=${X11BASE} +MAN6= xpuyopuyo.6 + +.include <bsd.port.pre.mk> + +.if defined(WITH_MIKMOD) || (exists(${LOCALBASE}/lib/libmikmod.a) && \ + !defined(WITHOUT_MIKMOD)) +LIB_DEPENDS+= mikmod.2:${PORTSDIR}/audio/libmikmod +CONFIGURE_ARGS+=--with-libmikmod-prefix=${LOCALBASE} +.endif + +.if defined(HAVE_GNOME) +USE_GNOME= yes .else CONFIGURE_ARGS+=--without-gnome .endif + .if defined(WITH_ROTATE_FIXED) CONFIGURE_ARGS+=--enable-rotate-fixed .endif .if defined(WITH_AIBREED) CONFIGURE_ARGS+=--enable-aibreed .endif -.if defined(WITH_MUSIC) -CONFIGURE_ARGS+=--with-libmikmod-prefix=${LOCALBASE} -.endif - -MAN6= xpuyopuyo.6 - -.if defined(WITH_GNOME) -PLIST= ${WRKDIR}/PLIST - -pre-install: - @${CP} ${PKGDIR}/PLIST ${PLIST} - @${ECHO} share/gnome/apps/Games/xpuyopuyo.desktop >> ${PLIST} - @${ECHO} share/gnome/pixmaps/xpuyopuyo.xpm >> ${PLIST} -.endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |