freebsd-ports/emulators/vice/Makefile

112 lines
2.6 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: vice
# Date created: Mar 28, 1998
# Whom: dchapes@ddm.on.ca
#
1999-08-25 07:57:29 +02:00
# $FreeBSD$
2000-04-12 06:56:17 +02:00
PORTNAME= vice
PORTVERSION= 1.18
CATEGORIES= emulators
MASTER_SITES= http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/ \
ftp://ftp.zimmers.net/pub/cbm/crossplatform/emulators/VICE/
2004-03-26 18:22:17 +01:00
PKGNAMESUFFIX?= ${GNOME_SUFFIX}${PKGNAMESUFFIX2}
MAINTAINER= dinoex@FreeBSD.org
2003-02-20 19:26:42 +01:00
COMMENT= Emulator for Commodore's C64, C128, VIC20, PET, and CBM-II
LIB_DEPENDS= png:${PORTSDIR}/graphics/png
.if !defined(VICE_WITH_GNOME)
LIB_DEPENDS+= Xaw3d.${XAWVER}:${PORTSDIR}/x11-toolkits/Xaw3d
.endif
RESTRICTED= ROMs are copyrighted by Commodore Business Machines
USE_XPM= yes
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
2003-06-15 11:20:51 +02:00
MAKE_ENV+= MAKEINFOFLAGS="--no-split"
.if defined(VICE_WITH_GNOME)
2004-03-26 18:22:17 +01:00
GNOME_SUFFIX= -gnome
USE_GNOME= gnomelibs
CONFIGURE_ARGS= --enable-gnomeui
2004-02-26 06:17:15 +01:00
CONFLICTS?= vice-1.*
.else
CONFIGURE_ARGS= --with-xaw3d
2004-02-26 06:17:15 +01:00
CONFLICTS?= vice-gnome-1.*
.endif
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CPPFLAGS+= -I${LOCALBASE}/include
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
INFO= vice
MAN1= vice.1 c1541.1 petcat.1
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 \
vice.1 xcbm2.1
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/include/esd.h) && !defined(WITHOUT_ESOUND)
WITH_ESOUND?=yes
.endif
# will be picked up by configure
.if exists(${LOCALBASE}/include/ffmpeg/avformat.h)
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
.endif
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
LIBS+= -lgettextlib
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.if !defined(WITHOUT_SDL)
USE_SDL= sdl
CONFIGURE_ARGS+= --with-sdl
CFLAGS+= -DHAVE_LIBSDL=1 -DHAVE_SDL_SDL_AUDIO_H=1
CPPFLAGS+= -I${LOCALBASE}/include/SDL11
.endif
.if defined(WITH_ESOUND)
LIB_DEPENDS+= esd.2:${PORTSDIR}/audio/esound
CFLAGS+= -DHAVE_LIBESD=1 -DHAVE_SDL_SDL_AUDIO_H=1
.else
CONFIGURE_ARGS+= --without-esd
.endif
.if ${X_WINDOW_SYSTEM:L} != xfree86-3
BUILD_DEPENDS+= bdftopcf:${X_CLIENTS_PORT}
.endif
.if ${ARCH} == "alpha" && ${OSVERSION} < 500000
# ../src/resid/libresid.a(wave.o)(.rodata+0x0): relocation truncated to fit: GPREL32 *UND*
BROKEN= "GPREL relocation truncated"
.endif
post-extract:
@${RM} -f ${WRKSRC}/doc/vice.info*
post-patch:
${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" \
${WRKSRC}/man/vice.1
2003-01-02 05:23:50 +01:00
pre-install:
2003-06-15 11:20:51 +02:00
${MKDIR} ${DOCSDIR} ${PREFIX}/lib/vice/fonts
${INSTALL_DATA} ${WRKSRC}/data/fonts/vice-cbm.bdf \
${PREFIX}/lib/vice/fonts/
2003-01-02 05:23:50 +01:00
post-install:
@${LN} -sf vice_toc.html ${DOCSDIR}/index.html
.include <bsd.port.post.mk>