blob: 6d9dda081c07c898861a760d2d3aa2aeebd965b4 (
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
|
# ex:ts=8
# Ports collection makefile for: GutenMark
# Date created: Jun 7, 2002
# Whom: ijliao
#
# $FreeBSD$
PORTNAME= gutenmark
PORTVERSION= 20090510
CATEGORIES= textproc
MASTER_SITES= http://www.sandroid.org/GutenMark/wasftp.GutenMark/SoftwareSnapshots/
DISTNAME= GutenMark_source_dev-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Attractively formatting Project Gutenberg texts
WRKSRC= ${WRKDIR}/GutenMark-source
USE_WX= 2.8
USE_GMAKE= yes
ALL_TARGET= default
PLIST_FILES= bin/GutenMark bin/GutenSplit bin/GUItenMark \
%%DATADIR%%/convert.jpg %%DATADIR%%/logo.jpg
PLIST_DIRS= %%DATADIR%%
post-patch:
@${REINPLACE_CMD} -e 's|cc|${CC}|g ; \
s|-O3|${CFLAGS}|g ; \
/strip /d' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|-Wall|${CFLAGS} -Wall|g ; \
/strip /d' ${WRKSRC}/GutenUtilities/Makefile
@${REINPLACE_CMD} -e 's|g++|${CXX}|g ; \
s|`wx-config|`${WX_CONFIG}|g ; \
/strip /d' ${WRKSRC}/GUItenMark/Makefile
@${REINPLACE_CMD} -e 's|\./convert.jpg|${DATADIR}/convert.jpg|g ; \
s|\./logo.jpg|${DATADIR}/logo.jpg|g' ${WRKSRC}/GUItenMark/GUItenMark.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/GutenMark ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/GutenUtilities/GutenSplit ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/GUItenMark/GUItenMark ${PREFIX}/bin
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/GUItenMark/*.jpg ${DATADIR}
.include <bsd.port.mk>
|