blob: d8aa33d5fe00266757be1b73336e23eba8d0e18e (
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
|
# New ports collection makefile for: Ming
# Date created: 14 October 2000
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= ming
PORTVERSION= 0.0.9b
CATEGORIES= graphics
MASTER_SITES= http://www.opaque.net/ming/
EXTRACT_SUFX= .tgz
MAINTAINER= knu@FreeBSD.org
WRKSRC= ${WRKDIR}/${DISTNAME}/src
MAKE_ARGS= NOPROFILE=true
DOCS= CHANGES \
CREDITS \
README \
TODO
post-extract:
${MKDIR} ${WRKSRC}/c++
${CP} ${WRKSRC}/../c++_ext/ming.h ${WRKSRC}/c++/
post-patch:
${PERL} -i -p \
-e 's:"\.\./\.\./c\+\+_ext/ming\.h":<c++/ming.h>:g;' \
-e 's:"\.\./\.\./ming\.h":<ming.h>:g;' \
${WRKSRC}/../examples/c/* \
${WRKSRC}/../examples/c++/* \
${WRKSRC}/../examples/common/* \
${WRKSRC}/c++/ming.h
pre-build:
${CP} ${FILESDIR}/Makefile ${WRKSRC}/
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/ming
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/../${f} ${PREFIX}/share/doc/ming/
.endfor
${MKDIR} ${PREFIX}/share/examples/ming/common
${INSTALL_DATA} ${WRKSRC}/../examples/common/* \
${PREFIX}/share/examples/ming/common/
${MKDIR} ${PREFIX}/share/examples/ming/c
${INSTALL_DATA} ${WRKSRC}/../examples/c/*.c \
${PREFIX}/share/examples/ming/c/
${MKDIR} ${PREFIX}/share/examples/ming/c++
${INSTALL_DATA} ${WRKSRC}/../examples/c++/*.cpp \
${PREFIX}/share/examples/ming/c++/
.endif
.include <bsd.port.mk>
|