blob: d92cddea87ef64acb44b856e432244c7d77f82c4 (
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: nvidia-texture-tools
# Date created: 06 Mar 2009
# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= nvidia-texture-tools
PORTVERSION= 2.0.5
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Texture Tools with support for DirectX 10 texture formats
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
jpeg.9:${PORTSDIR}/graphics/jpeg \
tiff.4:${PORTSDIR}/graphics/tiff \
IlmImf.6:${PORTSDIR}/graphics/OpenEXR
USE_CMAKE= yes
CMAKE_USE_PTHREAD=yes
WRKSRC= ${WRKDIR}/${PORTNAME}
PORTDOCS= NVIDIA_Texture_Tools_README.txt ChangeLog
OPTIONS= COMPRESSUI "Build compressor UI (requires Qt4)" off
.include <bsd.port.options.mk>
.if defined(WITH_COMPRESSUI)
USE_QT_VER= 4
# *_build stuff is not really needed, but cmake's Qt finder won't work otherwise
QT_COMPONENTS= qmake_build moc_build uic_build rcc_build corelib gui opengl
PLIST_SUB+= COMPRESSUI=""
.else
PLIST_SUB+= COMPRESSUI="@comment "
.endif
.include <bsd.port.pre.mk>
post-patch:
.if defined(WITH_COMPRESSUI)
@${REINPLACE_CMD} -e '/FIND_PACKAGE.*Qt4/ s|)$$| REQUIRED&|' \
${WRKSRC}/src/CMakeLists.txt
.else
@${REINPLACE_CMD} -e '/FIND_PACKAGE.*Qt4/ d' \
${WRKSRC}/src/CMakeLists.txt
.endif
@${FIND} ${WRKSRC} -name CMakeLists.txt -print0 | ${XARGS} -0 \
${REINPLACE_CMD} -e '/ARCHIVE/ s|/static||'
.if !defined(NOPORTDOCS)
post-install:
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>
|