1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00
freebsd-ports/emulators/quasi88/Makefile
Tijl Coosemans 60945f0277 Replace USES=libtool:oldver with USES=libtool or USES=libtool:keepla in
the 32 ports that still use it.  Bump PORTREVISION on their dependent
ports except the ones that depend on these:

audio/libogg
audio/libvorbis
devel/pcre
ftp/curl
graphics/jpeg
graphics/libart_lgpl
graphics/tiff
textproc/expat2
textproc/libxslt

In these cases the same trick as in the recent gettext update is used.
The ports install a symlink with the old library version.  When enough
of their dependent ports have had regular updates the remaining ones can
get a PORTREVISION bump and the links can be removed.

Also remove the devel/pcre dependency from USE_GNOME=glib20.  It causes
over 2200 packages to depend on devel/pcre while less than 200 actually
link with it.  The glib20 package still depends on devel/pcre so this
should not make a difference for ports with USE_GNOME=glib20.  Also,
libdata/pkgconfig/glib-2.0.pc lists pcre as a private library so
USE_GNOME=glib20 should not propagate it.

PR:		195724
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2014-12-08 16:48:38 +00:00

62 lines
1.5 KiB
Makefile

# Created by: Nishika <nishika@cheerful.com>
# $FreeBSD$
PORTNAME= quasi88
PORTVERSION= 0.6.3
PORTREVISION= 5
CATEGORIES= emulators
MASTER_SITES= http://www.117.ne.jp/~show/pc8801/
MAINTAINER= ports@FreeBSD.org
COMMENT= PC-8801 emulator for X
USE_XORG= x11 xext
USES= gmake tar:tgz
MAKE_ENV= DATADIR="${DATADIR}" _CC="${CC}" _CFLAGS="${CFLAGS}" \
_CXX="${CXX}" LD="${CXX}" PROGRAM="${PORTNAME}"
MAKE_ARGS= ARCH="freebsd"
PORTDOCS= FAQ.TXT FORMAT.TXT GET-IMAGE.TXT HISTORY.TXT MANUAL.TXT \
QUASI88.TXT
PORTEXAMPLES= *
PLIST_FILES= bin/quasi88
OPTIONS_DEFINE= DOCS EXAMPLES SDL
.include <bsd.port.options.mk>
.if ${ARCH} == "i386"
MAKE_ENV+= LSB_FIRST=1
.endif
.if ${PORT_OPTIONS:MSDL}
USE_SDL= sdl
MAKE_ENV+= SDL_VERSION=1 JOYSTICK="joy_sdl"
.else
MAKE_ENV+= X11_VERSION=1 JOYSTICK="joy_bsd_usb"
.endif
post-patch:
@${REINPLACE_CMD} -e 's|^X11_|# X11_|g ; \
s|~/quasi88|$${DATADIR}|g ; \
s|^LSB_|# LSB_|g ; \
s|^JOY|# JOY|g ; \
s|^SDL_|# SDL_|g ; \
s|gcc|$${_CC}|g ; \
s|-O2|$${_CFLAGS}|g ; \
s|/usr/X11R6|$${LOCALBASE}|g ; \
s|g++|$${_CXX}|g ; \
s|^CXXLIBS|# CXXLIBS|g ; \
s|^LD|# LD|g ; \
s|^PROGRAM|# PROGRAM|g' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/quasi88 ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/*.rc ${STAGEDIR}${EXAMPLESDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/document && ${INSTALL_DATA} ${PORTDOCS} \
${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>