blob: cb819caa12dc94a6d05af07f6c31dc2c561b62fa (
plain)
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
|
# $NetBSD: Makefile,v 1.76 2019/04/03 00:32:43 ryoon Exp $
DISTNAME= openttd-1.8.0-source
PKGNAME= ${DISTNAME:S/-source//}
PKGREVISION= 3
CATEGORIES= games x11
MASTER_SITES= http://binaries.openttd.org/releases/${PKGVERSION_NOREV}/
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.openttd.org/
COMMENT= Open source clone of Transport Tycoon Deluxe
LICENSE= gnu-gpl-v2
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
USE_LANGUAGES= c c++0x
USE_TOOLS+= gmake pkg-config
BUILD_DEFS+= VARBASE
BUILD_TARGET= bundle
HAS_CONFIGURE= yes
CONFIGURE_ARGS+= --prefix-dir=${PREFIX}
CONFIGURE_ARGS+= --binary-dir=bin
CONFIGURE_ARGS+= --data-dir=share/openttd
CONFIGURE_ARGS+= --doc-dir=share/doc/openttd
CONFIGURE_ARGS+= --icon-theme-dir=share/icons/hicolor
CONFIGURE_ARGS+= --install-dir=${DESTDIR}
CONFIGURE_ARGS+= --man-dir=${PKGMANDIR}/man6
CONFIGURE_ARGS+= --menu-dir=share/applications
CONFIGURE_ARGS+= --personal-dir=.openttd
CONFIGURE_ARGS+= --shared-dir=${VARBASE}/games/openttd
# Hack: built-in xz does not provide liblzma.pc, needed to configure
PREFER_PKGSRC+= xz
CONFIGURE_ARGS+= --with-iconv
CONFIGURE_ARGS+= --with-lzo2=${BUILDLINK_PREFIX.lzo}/lib
.include "../../mk/bsd.prefs.mk"
CONFIGURE_ARGS.DragonFly+= --os=FREEBSD
.if ${OPSYS} == "Darwin"
CONFIGURE_ARGS+= --disable-cocoa-quickdraw
CONFIGURE_ARGS+= --with-cocoa
CONFIGURE_ARGS+= --without-application-bundle
CONFIGURE_ARGS+= --without-osx-sysroot
.else
.include "../../devel/SDL/buildlink3.mk"
.endif
.include "../../archivers/lzo/buildlink3.mk"
.include "../../archivers/xz/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../fonts/fontconfig/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../textproc/icu/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|