freebsd-ports/emulators/vba/Makefile
Stanislav Sedov 0d2725682b - Update devel/sdl12 to version 1.2.11. Now we employ stock SDL directory
structure (i.e. include/SDL for includes and sdl-config for configuration
   binary)
 - Update graphics/sdl_ttf to version 2.0.8
 - Update graphics/sdl_image to version 1.2.5
 - Update audio/sdl_mixer to version 1.2.7
 - Update net/sdl_net to version 1.2.6
 - Update Mk/bsd.sdl.mk accordingly
 - Fix dependent ports to fit the new directory structure and avoid several
   API breakages
 - Bump up portrevisions for all dependent ports to allow them to be upgraded
   by portupgrade/portmaster etc tools

Approved by:    kris (portmgr), sem (mentor)
2006-09-20 11:21:59 +00:00

92 lines
2.3 KiB
Makefile

# New ports collection makefile for: vba
# Date Created: 02 September 2003
# Whom: <arundel@gmx.net>
#
# $FreeBSD$
PORTNAME= vba
PORTVERSION= 1.7.2
PORTREVISION= 4
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= VisualBoyAdvance-src-${PORTVERSION}
MAINTAINER= arundel@h3c.de
COMMENT= Open Source Gameboy Advance emulator
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
USE_X_PREFIX= yes
WANT_GNOME= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_SDL= sdl
CONFIGURE_ARGS= LDFLAGS="-L${LOCALBASE}/lib" CPPFLAGS="-I${LOCALBASE}/include" LIBS="-lintl"
WRKSRC= ${WRKDIR}/VisualBoyAdvance-${PORTVERSION}
PLIST_SUB= INSTALL_GTK2="@comment "
DATA_FILES= ${WRKSRC}/src/VisualBoyAdvance.cfg
PROG_FILES= ${WRKSRC}/src/sdl/VisualBoyAdvance
DOC_FILES= COPYING AUTHORS NEWS README ChangeLog INSTALL
.include <bsd.port.pre.mk>
.if ${ARCH} == "ia64"
BROKEN= "Runaway cc1plus process"
.endif
.if ( ${OSVERSION} < 500035 )
CFLAGS+= -O0
.endif
.ifdef(WITH_GTK2)
PLIST_SUB= INSTALL_GTK2=""
USE_GCC= 3.4+
CONFIGURE_ARGS+= --enable-gtk=2.4
USE_GNOME= gnomelibs gtk20
LIB_DEPENDS+= gtkmm-2.4:${PORTSDIR}/x11-toolkits/gtkmm24 \
glademm-2.4:${PORTSDIR}/devel/libglademm24
PROG_FILES+= ${WRKSRC}/src/gtk/gvba
GTK2_DATA_FILES= ${WRKSRC}/src/gtk/vba.glade
.endif
.ifndef(PROFILING)
CONFIGURE_ARGS+= --without-profiling
.endif
pre-everything::
.ifndef(PROFILING)
@${ECHO_MSG} ""
@${ECHO_MSG} "You can enable profiling by defining PROFILING."
.endif
.ifndef(WITH_GTK2)
@${ECHO_MSG} ""
@${ECHO_MSG} "You can install the GTK2 based X version by defining WITH_GTK2."
.endif
@${ECHO_MSG} ""
@${ECHO_MSG} "Due to a bug in gcc2 optimizations other than -O0 will be ignored on"
@${ECHO_MSG} "FreeBSD releases that didn't ship with gcc3 (prior 500035)."
@${ECHO_MSG} ""
do-install:
${INSTALL_PROGRAM} ${PROG_FILES} ${PREFIX}/bin
.ifdef(WITH_GTK2)
${INSTALL} -d ${PREFIX}/share/VisualBoyAdvance
${INSTALL_DATA} ${GTK2_DATA_FILES} ${PREFIX}/share/VisualBoyAdvance
.endif
${SED} -e 's|filter=0|filter=1|' ${DATA_FILES} > ${DATA_FILES}-default
${INSTALL_DATA} ${DATA_FILES}-default ${PREFIX}/bin
post-install:
.ifndef(NOPORTDOCS)
${INSTALL} -d ${DOCSDIR}
.for filename in ${DOC_FILES}
${INSTALL_MAN} ${WRKSRC}/${filename} ${DOCSDIR}
.endfor
.endif
${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>