2012-12-09 22:40:55 +01:00
|
|
|
# Created by: dchapes@ddm.on.ca
|
1999-08-25 07:57:29 +02:00
|
|
|
# $FreeBSD$
|
1998-07-12 13:13:25 +02:00
|
|
|
|
2000-04-12 06:56:17 +02:00
|
|
|
PORTNAME= vice
|
2012-12-09 22:40:55 +01:00
|
|
|
PORTVERSION= 2.4
|
2015-01-14 19:19:32 +01:00
|
|
|
PORTREVISION= 6
|
1998-07-12 13:13:25 +02:00
|
|
|
CATEGORIES= emulators
|
2011-08-06 19:48:25 +02:00
|
|
|
MASTER_SITES= http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/ \
|
2005-10-25 11:41:56 +02:00
|
|
|
ftp://ftp.zimmers.net/pub/cbm/crossplatform/emulators/VICE/
|
2004-03-26 18:22:17 +01:00
|
|
|
PKGNAMESUFFIX?= ${GNOME_SUFFIX}${PKGNAMESUFFIX2}
|
1998-07-12 13:13:25 +02:00
|
|
|
|
2002-08-10 16:09:59 +02:00
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
2005-12-17 10:33:30 +01:00
|
|
|
COMMENT= Emulator for Commodore C64, C128, VIC20, PET, and CBM-II
|
1998-07-12 13:13:25 +02:00
|
|
|
|
2013-09-21 13:06:03 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2008-03-17 19:47:18 +01:00
|
|
|
BUILD_DEPENDS= bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf \
|
|
|
|
mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
|
2012-07-26 07:40:22 +02:00
|
|
|
mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
|
2014-12-25 20:04:25 +01:00
|
|
|
LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png \
|
2013-12-05 18:11:14 +01:00
|
|
|
libgif.so:${PORTSDIR}/graphics/giflib \
|
2014-04-07 15:18:20 +02:00
|
|
|
libmp3lame.so:${PORTSDIR}/audio/lame \
|
|
|
|
libavcodec.so:${PORTSDIR}/multimedia/ffmpeg
|
2003-01-04 21:40:18 +01:00
|
|
|
|
2013-03-18 22:56:30 +01:00
|
|
|
RESTRICTED= ROMs are copyrighted by Commodore Business Machines
|
1998-07-12 13:13:25 +02:00
|
|
|
|
2014-08-03 18:19:17 +02:00
|
|
|
USES= iconv:patch gmake pkgconfig makeinfo
|
2008-05-04 18:03:54 +02:00
|
|
|
USE_XORG= xpm ice sm xext xv xt x11 xmu
|
|
|
|
USE_XORG+= xrender xinerama xi xrandr xcursor xcomposite xdamage xfixes
|
1998-08-17 19:30:35 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2003-06-15 11:20:51 +02:00
|
|
|
MAKE_ENV+= MAKEINFOFLAGS="--no-split"
|
2008-03-29 12:06:22 +01:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
2005-12-03 21:07:52 +01:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2008-03-29 12:06:22 +01:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2013-12-05 18:11:14 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-fullscreen --enable-ipv6 \
|
|
|
|
--disable-dependency-tracking
|
2012-12-09 22:40:55 +01:00
|
|
|
#CONFIGURE_ARGS+= --enable-ethernet
|
|
|
|
# libpcap or libnet
|
|
|
|
#CONFIGURE_ARGS+= --enable-sdlui
|
|
|
|
#CONFIGURE_ARGS+= --enable-gp2x
|
|
|
|
#CONFIGURE_ARGS+= --enable-wiz
|
|
|
|
#CONFIGURE_ARGS+= --enable-parsid
|
|
|
|
#CONFIGURE_ARGS+= --enable-memmap
|
|
|
|
|
2014-04-07 15:18:20 +02:00
|
|
|
LMLINKS= vice.1 x64.1 \
|
1999-06-06 18:51:45 +02:00
|
|
|
vice.1 x128.1 \
|
|
|
|
vice.1 xvic.1 \
|
|
|
|
vice.1 xpet.1 \
|
2003-01-02 05:23:50 +01:00
|
|
|
vice.1 xplus4.1 \
|
1999-06-06 18:51:45 +02:00
|
|
|
vice.1 xcbm2.1
|
1998-07-12 13:13:25 +02:00
|
|
|
|
2011-04-02 20:54:37 +02:00
|
|
|
FIX_XAW= src/arch/unix/x11/xaw/about.c \
|
|
|
|
src/arch/unix/x11/xaw/uicartridge.c \
|
|
|
|
src/arch/unix/x11/xaw/uiedisk.c \
|
|
|
|
src/arch/unix/x11/xaw/uimenu.c \
|
2013-12-05 18:11:14 +01:00
|
|
|
src/arch/unix/x11/xaw/uipalcontrol.c \
|
2011-04-02 20:54:37 +02:00
|
|
|
src/arch/unix/x11/xaw/uiscreenshot.c \
|
|
|
|
src/arch/unix/x11/xaw/uisnapshot.c \
|
2013-12-05 18:11:14 +01:00
|
|
|
src/arch/unix/x11/xaw/uivsidcontrol.c \
|
2011-04-02 20:54:37 +02:00
|
|
|
src/arch/unix/x11/xaw/x11ui.c \
|
|
|
|
src/arch/unix/x11/xaw/widgets/FileSel.c \
|
|
|
|
src/arch/unix/x11/xaw/widgets/FileSelP.h \
|
|
|
|
src/arch/unix/x11/xaw/widgets/MultiList.h \
|
|
|
|
src/arch/unix/x11/xaw/widgets/MultiListP.h \
|
|
|
|
src/arch/unix/x11/xaw/widgets/ScrList.c \
|
|
|
|
|
2014-07-15 17:12:57 +02:00
|
|
|
OPTIONS_DEFINE= SDL ASOUND PULSE DOCS
|
2013-12-05 18:11:14 +01:00
|
|
|
OPTIONS_SINGLE= GUI
|
|
|
|
OPTIONS_SINGLE_GUI= GNOMEUI XAW3D XAW
|
|
|
|
OPTIONS_DEFAULT?= GNOMEUI SDL
|
|
|
|
NO_OPTIONS_SORT=yes
|
|
|
|
GNOMEUI_DESC= use gnomeui toolkit
|
|
|
|
XAW3D_DESC= use Xaw3d library
|
|
|
|
XAW_DESC= use plain Xaw library
|
|
|
|
SDL_DESC= build with SDL sound system support
|
|
|
|
ASOUND_DESC= build with asound support
|
|
|
|
PULSE_DESC= build with pulseaudio support
|
|
|
|
|
|
|
|
GNOMEUI_CONFIGURE_ENABLE= gnomeui
|
|
|
|
XAW3D_CONFIGURE_WITH= xaw3d
|
|
|
|
XAW3D_LIB_DEPENDS= libXaw3d.so:${PORTSDIR}/x11-toolkits/Xaw3d
|
|
|
|
SDL_USE= SDL=sdl
|
|
|
|
SDL_CONFIGURE_ON= --with-sdlsound
|
|
|
|
SDL_CPPFLAGS= -I${LOCALBASE}/include/SDL
|
|
|
|
ASOUND_CONFIGURE_OFF= --without-alsa
|
|
|
|
ASOUND_LIB_DEPENDS= libasound.so:${PORTSDIR}/audio/alsa-lib
|
|
|
|
PULSE_CONFIGURE_OFF= --without-pulse
|
|
|
|
PULSE_LIB_DEPENDS= libpulse.so:${PORTSDIR}/audio/pulseaudio
|
|
|
|
|
2013-04-26 18:39:14 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2005-12-17 10:33:30 +01:00
|
|
|
|
2013-12-05 18:11:14 +01:00
|
|
|
.if !defined(BUILDING_INDEX)
|
2014-04-07 15:18:20 +02:00
|
|
|
__pmlinks1!= ${ECHO_CMD} '${LMLINKS:S/ / /}' | ${AWK} \
|
2013-12-05 18:11:14 +01:00
|
|
|
'{ if (NF % 2 != 0) { print "broken"; exit; } \
|
|
|
|
for (i=1; i<=NF; i++) { \
|
|
|
|
if ( i % 2 == 0) { print " " $$i " ;"; } \
|
|
|
|
else { printf "${LN} -s " $$i " "; } \
|
|
|
|
} }'
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MXAW3D}
|
|
|
|
GNOME_SUFFIX= -xaw3d
|
|
|
|
CONFLICTS?= vice-gnome-1.* vice-1.*
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MGNOMEUI}
|
|
|
|
GNOME_SUFFIX= -gnome
|
|
|
|
USE_GNOME= gtk20 vte
|
|
|
|
CONFLICTS?= vice-1.* vice-xaw3d-1.*
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MXAW}
|
|
|
|
CONFLICTS?= vice-xaw3d-1.* vice-gnome-1.*
|
|
|
|
USE_XORG+= xaw
|
2009-12-25 19:24:02 +01:00
|
|
|
.endif
|
|
|
|
|
2008-07-29 05:57:31 +02:00
|
|
|
.if exists(${LOCALBASE}/bin/fc-cache)
|
|
|
|
PLIST_SUB+= FCCACHE=""
|
|
|
|
PLIST_SUB+= NOFCCACHE="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= FCCACHE="@comment "
|
|
|
|
PLIST_SUB+= NOFCCACHE=""
|
|
|
|
.endif
|
|
|
|
|
2013-04-26 18:39:14 +02:00
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2013-10-04 12:18:12 +02:00
|
|
|
USES+= gettext
|
2011-01-07 11:04:00 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-nls --localedir=${LOCALBASE}/share/locale
|
|
|
|
# causes vice to crash:
|
2011-01-06 10:52:31 +01:00
|
|
|
#LDFLAGS+= -lgettextlib
|
2005-12-11 11:06:01 +01:00
|
|
|
PLIST_SUB+= NLS=""
|
2005-12-03 21:07:52 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
2005-12-11 11:06:01 +01:00
|
|
|
PLIST_SUB+= NLS="@comment "
|
2005-12-03 21:07:52 +01:00
|
|
|
.endif
|
|
|
|
|
2013-12-05 18:11:14 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
INFO+= vice
|
2005-10-25 11:41:56 +02:00
|
|
|
.endif
|
|
|
|
|
2013-12-05 18:11:14 +01:00
|
|
|
.if ${PORT_OPTIONS:MSDL}
|
|
|
|
USE_SDL= sdl
|
2011-01-04 07:17:09 +01:00
|
|
|
.endif
|
|
|
|
|
2001-11-23 18:41:54 +01:00
|
|
|
post-extract:
|
|
|
|
@${RM} -f ${WRKSRC}/doc/vice.info*
|
|
|
|
|
|
|
|
post-patch:
|
2005-10-25 11:41:56 +02:00
|
|
|
${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" \
|
|
|
|
${WRKSRC}/man/vice.1
|
2014-04-26 14:19:33 +02:00
|
|
|
${REINPLACE_CMD} -e 's|^localedir.*|localedir = $$(DESTDIR)${LOCALBASE}/share/locale|' \
|
2011-01-07 11:04:00 +01:00
|
|
|
${WRKSRC}/po/Makefile.in.in
|
2011-01-04 07:17:09 +01:00
|
|
|
${REINPLACE_CMD} -e 's|lungif|lgif|g' -e 's|== "x|= "x|' \
|
2011-01-07 11:04:00 +01:00
|
|
|
-e 's|"DATADIRNAME"/locale|share/locale|' \
|
2011-01-04 07:17:09 +01:00
|
|
|
${WRKSRC}/configure
|
2011-01-07 11:04:00 +01:00
|
|
|
.for i in da.po de.po fr.po hu.po it.po nl.po pl.po sv.po tr.po
|
|
|
|
${MV} "${WRKSRC}/po/${i}" "${WRKSRC}/po/${i}.latin"
|
2013-09-02 07:41:50 +02:00
|
|
|
${ICONV_CMD} -f latin1 -t utf-8 < "${WRKSRC}/po/${i}.latin" > "${WRKSRC}/po/${i}"
|
2011-01-07 11:04:00 +01:00
|
|
|
.endfor
|
2013-04-26 18:39:14 +02:00
|
|
|
.if ! ${PORT_OPTIONS:MDOCS}
|
2005-12-17 10:33:30 +01:00
|
|
|
${REINPLACE_CMD} -e 's| doc||' ${WRKSRC}/Makefile.in
|
|
|
|
.endif
|
2013-12-05 18:11:14 +01:00
|
|
|
.if ${PORT_OPTIONS:MXAW3D}
|
2011-04-02 20:54:37 +02:00
|
|
|
.for i in ${FIX_XAW}
|
|
|
|
${REINPLACE_CMD} -e 's|X11/Xaw/|X11/Xaw3d/|' ${WRKSRC}/${i}
|
|
|
|
.endfor
|
|
|
|
.endif
|
2001-11-23 18:41:54 +01:00
|
|
|
|
2003-01-02 05:23:50 +01:00
|
|
|
pre-install:
|
2013-12-05 18:11:14 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/lib/vice/fonts
|
|
|
|
.if exists(${LOCALBASE}/bin/fc-cache)
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/fonts/vice-cbm.bdf \
|
|
|
|
${STAGEDIR}${PREFIX}/lib/vice/fonts/
|
|
|
|
.endif
|
2013-04-26 18:39:14 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2013-12-05 18:11:14 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2005-12-17 10:33:30 +01:00
|
|
|
.endif
|
2003-01-02 05:23:50 +01:00
|
|
|
|
1998-07-12 13:13:25 +02:00
|
|
|
post-install:
|
2014-03-04 07:51:37 +01:00
|
|
|
( cd ${STAGEDIR}${PREFIX}/man/man1 && ${__pmlinks1} )
|
2013-04-26 18:39:14 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2013-12-05 18:11:14 +01:00
|
|
|
${LN} -sf vice_toc.html ${STAGEDIR}${DOCSDIR}/index.html
|
2005-12-17 10:33:30 +01:00
|
|
|
.endif
|
1998-07-12 13:13:25 +02:00
|
|
|
|
2013-04-26 18:39:14 +02:00
|
|
|
.include <bsd.port.mk>
|