blob: a953e485af343444673933fc9aa5b987c89f6b15 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
# ports collection makefile for: AliceSoft System 3.5 on X
# Date created: 24 Oct 1998
# Whom: Seiichirou Hiraoka
#
# $FreeBSD$
#
PORTNAME= xsystem35
PORTVERSION= 1.7.2
PORTREVISION= 1
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
LIB_DEPENDS= vorbis.3:${PORTSDIR}/audio/libvorbis \
jpeg.9:${PORTSDIR}/graphics/jpeg
USE_AUTOTOOLS= autoconf:259 libtool:15
USE_GETTEXT= yes
USE_GMAKE= yes
USE_GNOME= gtk12
WANT_GNOME= yes
USE_REINPLACE= yes
PKGMESSAGE= ${WRKSRC}/MESSAGE
DOCSDIR= ${PREFIX}/share/doc/ja/${PORTNAME}
PATCHES= pastel.diff
.include <bsd.port.pre.mk>
CONFIGURE_ARGS= --without-included-gettext \
--program-prefix="" \
--with-cachesize=20 \
--enable-midi=seq,extp,raw \
--enable-cdrom=bsd,mp3
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.if ${HAVE_GNOME: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(WITH_SDL)
#USE_SDL= sdl
#CONFIGURE_ARGS+= --enable-sdl
#CONFIGURE_ENV+= "CPPFLAGS=`$(SDL_CONFIG) --cflags`" \
# "LIBS=`$(SDL_CONFIG) --libs`"
#.else
CONFIGURE_ARGS+= --disable-sdl
#.endif
.if ${ARCH} == "i386"
.if defined(WITHOUT_MMX)
CONFIGURE_ARGS+= --disable-mmx
.else
CONFIGURE_ARGS+= --enable-mmx
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
.endif
.endif
pre-everything::
#.if !defined(WITH_SDL)
# @${ECHO_MSG} '===> Define WITH_SDL to enable SDL support'
#.endif
.if ${ARCH} == "i386"
.if !defined(WITHOUT_MMX)
@${ECHO_MSG} '===> Define WITHOUT_MMX to disable MMX routines'
.endif
.endif
post-extract:
@${CP} ${WRKSRC}/INSTALL ${WRKSRC}/doc/INSTALL
post-patch:
${FIND} ${WRKSRC}/src -type f |\
${XARGS} ${GREP} -l '<SDL/SDL' /dev/null |\
${XARGS} ${REINPLACE_CMD} -e 's,<SDL/,<,'; \
done
pre-configure:
(cd ${WRKSRC}/libltdl; ${AUTOCONF})
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/contrib/instgame ${PREFIX}/bin
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
(cd ${WRKSRC}/doc;\
${INSTALL_MAN} * ${DOCSDIR})
.endif
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/src/xsys35rc.sample ${EXAMPLESDIR}
@(cd ${WRKSRC}/contrib; \
${INSTALL_DATA} *.* ${EXAMPLESDIR})
@(cd ${WRKSRC}/patch; \
${INSTALL_DATA} ${PATCHES} ${EXAMPLESDIR})
@${SED} -e s,PREFIX,${PREFIX}, ${PKGDIR}/pkg-message > ${WRKSRC}/MESSAGE
@${CAT} ${WRKSRC}/MESSAGE
.include <bsd.port.post.mk>
|