blob: 7d04609679d7e5448bc19bce3e071bba29bdccd0 (
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
|
PORTNAME= oblige
PORTVERSION= 7.70
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/Oblige/${PORTVERSION}
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g}-source
MAINTAINER= danfe@FreeBSD.org
COMMENT= Random map generator for classic FPS games
WWW= https://oblige.sourceforge.net/
LICENSE= GPLv2+
BUILD_DEPENDS= ${LOCALBASE}/include/glbsp.h:games/glbsp
LIB_DEPENDS= libfltk.so:x11-toolkits/fltk \
libfontconfig.so:x11-fonts/fontconfig \
libphysfs.so:devel/physfs \
libpng.so:graphics/png
USES= dos2unix gmake jpeg xorg zip
DOS2UNIX_FILES= ajpoly_src/pl_endian.h gui/sys_endian.h
USE_XORG= x11 xcursor xext xfixes xft xinerama xrender
WRKSRC= ${WRKDIR}/Oblige-${PORTVERSION}-source
OPTIONS_DEFINE= DOCS
PORTDOCS= AUTHORS.txt CHANGES.txt README.txt TODO.txt
post-extract:
@cd ${WRKSRC} && ${RM} -r glbsp_src physfs_src
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/Oblige ${STAGEDIR}${PREFIX}/bin/oblige
cd ${WRKSRC} && ${COPYTREE_SHARE} "addons data engines games \
language modules scripts" ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/misc/oblige.desktop \
${STAGEDIR}${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/misc/oblige.xpm \
${STAGEDIR}${PREFIX}/share/pixmaps
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps
${INSTALL_DATA} ${WRKSRC}/misc/icon_128x128.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/oblige.png
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} changelogs ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
PATCH_ARGS+= -l
|