blob: e06b93f0ff0ff7c8aa4824996b8ccdac979f15b5 (
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
|
# New ports collection makefile for: qmc2
# Date created: 2007-02-25
# Whom: alepulver
#
# $FreeBSD$
#
PORTNAME= qmc2
PORTVERSION= 0.35
CATEGORIES= emulators
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Qt 4 based UNIX MAME/MESS frontend
RUN_DEPENDS= mame:${PORTSDIR}/emulators/mame \
mess:${PORTSDIR}/emulators/mess
NO_WRKSUBDIR= yes
USE_BZIP2= yes
USE_XORG= xmu
USE_GL= glu
USE_QT_VER= 4
QT_COMPONENTS= gui opengl phonon qtestlib webkit xml \
moc_build qmake_build rcc_build uic_build
USE_SDL= sdl
USE_GMAKE= yes
MAKE_ARGS= QTDIR="${QT_PREFIX}" QMAKE="${QMAKE}" \
SYSCONFDIR="${PREFIX}/etc" ARCH="${OPSYS}" \
CC_FLAGS="${CFLAGS}" CXX_FLAGS="${CXXFLAGS}" \
CC="${CC}" CXX="${CXX}" LINK="${CXX}"
MAKE_JOBS_UNSAFE=yes
post-extract:
@${MKDIR} ${WRKSRC}/qmc2-sdlmess
@(cd ${WRKSRC}/qmc2; ${COPYTREE_SHARE} . ../qmc2-sdlmess)
@${FIND} ${WRKSRC} -name "*.sh" | ${XARGS} ${CHMOD} ${BINMODE}
post-patch:
@${CP} ${FILESDIR}/Makefile ${WRKSRC}
@(cd ${WRKSRC}/qmc2/inst; ${SED} -e 's|DATADIR|${PREFIX}/share|' \
< qmc2.ini.template > qmc2.ini)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/qmc2/qmc2-sdlmame ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/qmc2-sdlmess/qmc2-sdlmess ${PREFIX}/bin
@${MKDIR} ${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/qmc2/inst/qmc2.ini ${ETCDIR}
@${MKDIR} ${DATADIR}/img
@(cd ${WRKSRC}/qmc2/data/img; ${COPYTREE_SHARE} . ${DATADIR}/img)
@${MKDIR} ${DATADIR}/lng
${INSTALL_DATA} ${WRKSRC}/qmc2/data/lng/qmc2_*.qm ${DATADIR}/lng
@${MKDIR} ${DATADIR}/opt
@(cd ${WRKSRC}/qmc2/data/opt; ${COPYTREE_SHARE} . ${DATADIR}/opt)
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}/html
@(cd ${WRKSRC}/qmc2/data/doc/html; ${COPYTREE_SHARE} . ${DOCSDIR}/html)
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|