freebsd-ports/emulators/xsystem35/Makefile
Tijl Coosemans 3ce0f21808 devel/glib12 x11-toolkits/gtk12:
- Convert to USES=libtool and bump dependent ports
- Add INSTALL_TARGET=install-strip
- Remove patches that renamed include directories and libraries so they
  didn't conflict with early development versions of glib/gtk 2.0
2014-09-13 15:11:27 +00:00

77 lines
2 KiB
Makefile

# Created by: Seiichirou Hiraoka
# $FreeBSD$
PORTNAME= xsystem35
PORTVERSION= 1.7.2
PORTREVISION= 18
CATEGORIES= emulators
MASTER_SITES= http://8ne.sakura.ne.jp:20008/chika/unitbase/xsys35/down/
MAINTAINER= ports@FreeBSD.org
COMMENT= AliceSoft System 3.5/3.6/3.8/3.9 on X Window System
LICENSE= GPLv2 # (or later)
LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis \
libfreetype.so:${PORTSDIR}/print/freetype2 \
libjpeg.so:${PORTSDIR}/graphics/jpeg
OPTIONS_DEFINE= ESOUND DOCS EXAMPLES
USES= gettext gmake libtool shebangfix
SHEBANG_FILES= contrib/instgame
USE_AUTOTOOLS= autoconf:env
USE_GNOME= gtk12
USE_XORG= xxf86vm
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-included-gettext \
--with-cachesize=20 \
--disable-static \
--enable-midi=seq,extp,raw \
--enable-cdrom=bsd,mp3
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
MAKE_JOBS_UNSAFE= yes
INSTALL_TARGET= install-strip
SUB_FILES= pkg-message
DOCSDIR= ${PREFIX}/share/doc/ja/${PORTNAME}
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MESOUND}
USE_GNOME+= esound
CONFIGURE_ARGS+= --enable-audio=oss,esd --with-default-output=esd
.else
CONFIGURE_ARGS+= --enable-audio=oss --with-default-output=oss
.endif
.if defined(MACHINE_CPU) && ${MACHINE_CPU:Mmmx}
CONFIGURE_ARGS+= --enable-mmx
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
.else
CONFIGURE_ARGS+= --disable-mmx
.endif
post-patch:
@${CP} ${WRKSRC}/INSTALL ${WRKSRC}/doc/INSTALL
@${REINPLACE_CMD} '/-lxpg4/d' ${WRKSRC}/configure
@${REINPLACE_CMD} 's|__COUNTER__|__COUNTER_H__|' ${WRKSRC}/src/counter.h
pre-configure:
(cd ${WRKSRC}/libltdl; ${AUTOCONF})
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/contrib/instgame ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/doc;\
${INSTALL_DATA} * ${STAGEDIR}${DOCSDIR})
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/src/xsys35rc.sample ${STAGEDIR}${EXAMPLESDIR}
@(cd ${WRKSRC}/contrib; \
${INSTALL_DATA} *.* ${STAGEDIR}${EXAMPLESDIR})
@(cd ${WRKSRC}/patch; \
${INSTALL_DATA} pastel.diff ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>