Line 0
Link Here
|
|
|
1 |
# New ports collection makefile for: redeclipse |
2 |
# Date created: 2011-03-17 |
3 |
# Whom: Sender Ghost <lightside@safebox.ru> |
4 |
# |
5 |
|
6 |
PORTNAME= redeclipse |
7 |
PORTVERSION= 1.0 |
8 |
PORTREVISION?= 0 |
9 |
CATEGORIES= games |
10 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}_${PORTVERSION} |
11 |
DISTNAME= ${PORTNAME}_${PORTVERSION}_linux |
12 |
|
13 |
MAINTAINER= ports@FreeBSD.org |
14 |
COMMENT= A single-player and multi-player first-person ego-shooter,\ |
15 |
built as a total conversion of Cube Engine 2 |
16 |
|
17 |
LICENSE_COMB= multi |
18 |
LICENSE= MIT ZLIB |
19 |
LICENSE_NAME_ZLIB= zlib license |
20 |
LICENSE_FILE_ZLIB= ${WRKSRC}/license.txt |
21 |
LICENSE_PERMS_ZLIB= ${_LICENSE_PERMS_DEFAULT} |
22 |
LICENSE_GROUPS_ZLIB= FSF GPL OSI |
23 |
|
24 |
USE_GMAKE= yes |
25 |
GNU_CONFIGURE= yes |
26 |
USE_BZIP2= yes |
27 |
CONFIGURE_ENV= ACLOCAL=true AUTOCONF=true AUTOMAKE=true |
28 |
CONFIGURE_WRKSRC= ${WRKSRC}/src/enet |
29 |
CONFIGURE_ARGS= --enable-shared=no --enable-static=yes |
30 |
BUILD_WRKSRC= ${WRKSRC}/src |
31 |
WRKSRC= ${WRKDIR}/${PORTNAME} |
32 |
ALL_TARGET= libenet |
33 |
MAKE_JOBS_SAFE= yes |
34 |
|
35 |
PORTDATA= data redeclipse.ico |
36 |
PORTDOCS= * |
37 |
|
38 |
OPTIONS= CLIENT "Build client" on \ |
39 |
DEDICATED "Build dedicated server" on |
40 |
|
41 |
SUB_FILES= redeclipse_client redeclipse_server pkg-message |
42 |
|
43 |
.include <bsd.port.pre.mk> |
44 |
|
45 |
.if defined(WITHOUT_CLIENT) && defined(WITHOUT_DEDICATED) |
46 |
IGNORE= needs at least one executable (CLIENT or DEDICATED) |
47 |
.endif |
48 |
|
49 |
.if !defined(WITHOUT_CLIENT) |
50 |
USE_GL= yes |
51 |
USE_SDL= image mixer sdl |
52 |
ALL_TARGET+= client |
53 |
RE_BIN+= client |
54 |
|
55 |
DESKTOP_ENTRIES="Red Eclipse" "${COMMENT}" \ |
56 |
"${DATADIR}/redeclipse.ico" "${PORTNAME}_client" \ |
57 |
"Application;Game;" ${FALSE} |
58 |
.endif |
59 |
|
60 |
.if !defined(WITHOUT_DEDICATED) |
61 |
ALL_TARGET+= server |
62 |
RE_BIN+= server |
63 |
.endif |
64 |
|
65 |
pre-build: |
66 |
@${REINPLACE_CMD} -e '/^CXXFLAGS/d' \ |
67 |
-e 's|sdl-config|$${SDL_CONFIG}|' \ |
68 |
-e 's|/usr/X11R6|$${LOCALBASE}|' \ |
69 |
${BUILD_WRKSRC}/Makefile |
70 |
@${MV} ${BUILD_WRKSRC}/redeclipse.ico ${WRKSRC} |
71 |
|
72 |
do-install: |
73 |
.for f in ${RE_BIN} |
74 |
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}_${f} ${PREFIX}/bin |
75 |
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/re${f} ${PREFIX}/libexec/${PORTNAME}_${f} |
76 |
.endfor |
77 |
.if !defined(NOPORTDATA) |
78 |
${MKDIR} ${DATADIR} |
79 |
cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDATA}" ${DATADIR} |
80 |
.endif |
81 |
.if !defined(NOPORTDOCS) |
82 |
${MKDIR} ${DOCSDIR} |
83 |
cd ${BUILD_WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR} |
84 |
.endif |
85 |
|
86 |
post-install: |
87 |
.for f in ${RE_BIN} |
88 |
@${ECHO_CMD} bin/${PORTNAME}_${f} >> ${TMPPLIST} |
89 |
@${ECHO_CMD} libexec/${PORTNAME}_${f} >> ${TMPPLIST} |
90 |
.endfor |
91 |
|
92 |
.include <bsd.port.post.mk> |