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
|
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
|
|
|
|
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
|
2012-06-01 07:26:28 +02:00
|
|
|
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \
|
2011-01-04 07:17:09 +01:00
|
|
|
gif:${PORTSDIR}/graphics/giflib \
|
|
|
|
mp3lame:${PORTSDIR}/audio/lame
|
2008-05-04 18:02:35 +02:00
|
|
|
.if defined(VICE_WITH_XAW3D)
|
2005-12-03 21:07:52 +01:00
|
|
|
LIB_DEPENDS+= Xaw3d.${XAWVER}:${PORTSDIR}/x11-toolkits/Xaw3d
|
2003-01-04 21:40:18 +01:00
|
|
|
.endif
|
|
|
|
|
2005-12-17 10:33:30 +01:00
|
|
|
RESTRICTED= "ROMs are copyrighted by Commodore Business Machines"
|
2010-06-04 15:49:15 +02:00
|
|
|
LICENSE= GPLv2
|
1998-07-12 13:13:25 +02:00
|
|
|
|
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
|
2005-12-11 11:06:01 +01:00
|
|
|
USE_GMAKE= yes
|
2012-07-26 07:40:22 +02:00
|
|
|
USE_PKGCONFIG= yes
|
1998-08-17 19:30:35 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2003-06-15 11:20:51 +02:00
|
|
|
MAKE_ENV+= MAKEINFOFLAGS="--no-split"
|
1998-07-12 13:13:25 +02:00
|
|
|
|
2008-05-04 18:02:35 +02:00
|
|
|
.if defined(VICE_WITH_XAW3D)
|
|
|
|
GNOME_SUFFIX= -xaw3d
|
|
|
|
CONFIGURE_ARGS= --with-xaw3d --disable-gnomeui
|
|
|
|
CONFLICTS?= vice-gnome-1.* vice-1.*
|
|
|
|
.else
|
|
|
|
.if !defined(VICE_WITHOUT_GNOME)
|
2004-03-26 18:22:17 +01:00
|
|
|
GNOME_SUFFIX= -gnome
|
2012-12-09 22:40:55 +01:00
|
|
|
USE_GNOME= gtk20 vte
|
2003-01-04 21:40:18 +01:00
|
|
|
CONFIGURE_ARGS= --enable-gnomeui
|
2008-05-04 18:02:35 +02:00
|
|
|
CONFLICTS?= vice-1.* vice-xaw3d-1.*
|
2003-01-04 21:40:18 +01:00
|
|
|
.else
|
2008-05-04 18:02:35 +02:00
|
|
|
CONFIGURE_ARGS= --without-xaw3d --disable-gnomeui
|
|
|
|
CONFLICTS?= vice-xaw3d-1.* vice-gnome-1.*
|
2008-05-04 18:03:54 +02:00
|
|
|
USE_XORG+= xaw
|
2008-05-04 18:02:35 +02:00
|
|
|
.endif
|
2003-01-04 21:40:18 +01:00
|
|
|
.endif
|
|
|
|
|
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
|
2009-12-25 19:24:02 +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
|
|
|
|
|
|
|
|
Optional Features:
|
|
|
|
|
|
|
|
|
1998-07-12 13:13:25 +02:00
|
|
|
MAN1= vice.1 c1541.1 petcat.1
|
1999-06-06 18:51:45 +02:00
|
|
|
MLINKS= vice.1 x64.1 \
|
|
|
|
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 \
|
|
|
|
src/arch/unix/x11/xaw/uiscreenshot.c \
|
|
|
|
src/arch/unix/x11/xaw/uisnapshot.c \
|
|
|
|
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 \
|
|
|
|
|
2005-12-17 10:33:30 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
INFO= vice
|
|
|
|
.endif
|
|
|
|
|
2005-12-03 21:07:52 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2009-12-25 19:24:02 +01:00
|
|
|
.if ${OSVERSION}<800063
|
|
|
|
LIB_DEPENDS+= usb:${PORTSDIR}/devel/libusb
|
|
|
|
.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
|
|
|
|
|
2005-12-03 21:07:52 +01:00
|
|
|
# will be picked up by configure
|
|
|
|
.if exists(${LOCALBASE}/include/ffmpeg/avformat.h)
|
2012-12-09 22:40:55 +01:00
|
|
|
LIB_DEPENDS+= avcodec:${PORTSDIR}/multimedia/ffmpeg
|
2005-12-03 21:07:52 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_NLS)
|
2011-01-10 17:01:13 +01:00
|
|
|
PATCH_DEPENDS+= ${LOCALBASE}/bin/iconv:${PORTSDIR}/converters/libiconv
|
2005-12-03 21:07:52 +01:00
|
|
|
USE_GETTEXT= yes
|
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
|
|
|
|
|
2005-10-25 11:41:56 +02:00
|
|
|
.if !defined(WITHOUT_SDL)
|
2005-12-03 21:07:52 +01:00
|
|
|
USE_SDL= sdl
|
2011-04-02 20:54:37 +02:00
|
|
|
CONFIGURE_ARGS+= --with-sdlsound
|
2007-08-14 21:30:26 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include/SDL
|
2005-10-25 11:41:56 +02:00
|
|
|
.endif
|
|
|
|
|
2011-01-04 07:17:09 +01:00
|
|
|
.if defined(VICE_WITH_ASOUND)
|
2012-12-09 22:40:55 +01:00
|
|
|
LIB_DEPENDS+= asound:${PORTSDIR}/audio/alsa-lib
|
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
|
2011-01-07 11:04:00 +01:00
|
|
|
${REINPLACE_CMD} -e "s|^localedir.*|localedir = ${LOCALBASE}/share/locale|" \
|
|
|
|
${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"
|
|
|
|
${LOCALBASE}/bin/iconv -f latin1 -t utf-8 < "${WRKSRC}/po/${i}.latin" > "${WRKSRC}/po/${i}"
|
|
|
|
.endfor
|
2005-12-17 10:33:30 +01:00
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
${REINPLACE_CMD} -e 's| doc||' ${WRKSRC}/Makefile.in
|
|
|
|
.endif
|
2011-04-02 20:54:37 +02:00
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
.if defined(VICE_WITH_XAW3D)
|
|
|
|
.for i in ${FIX_XAW}
|
|
|
|
${REINPLACE_CMD} -e 's|X11/Xaw/|X11/Xaw3d/|' ${WRKSRC}/${i}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
.endif
|
2001-11-23 18:41:54 +01:00
|
|
|
|
2003-01-02 05:23:50 +01:00
|
|
|
pre-install:
|
2005-12-17 10:33:30 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
${MKDIR} ${PREFIX}/lib/vice/fonts
|
2003-06-15 11:20:51 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/fonts/vice-cbm.bdf \
|
|
|
|
${PREFIX}/lib/vice/fonts/
|
2003-01-02 05:23:50 +01:00
|
|
|
|
1998-07-12 13:13:25 +02:00
|
|
|
post-install:
|
2005-12-17 10:33:30 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-11-23 18:41:54 +01:00
|
|
|
@${LN} -sf vice_toc.html ${DOCSDIR}/index.html
|
2005-12-17 10:33:30 +01:00
|
|
|
.endif
|
1998-07-12 13:13:25 +02:00
|
|
|
|
2001-11-23 18:41:54 +01:00
|
|
|
.include <bsd.port.post.mk>
|