View | Details | Raw Unified | Return to bug 188146 | Differences between
and this patch

Collapse All | Expand All

(-)games/tuxtype/Makefile (-39 / +26 lines)
Lines 11-31 Link Here
11
		${T4K_DISTFILE}:t4k_common
11
		${T4K_DISTFILE}:t4k_common
12
12
13
MAINTAINER=	ports@FreeBSD.org
13
MAINTAINER=	ports@FreeBSD.org
14
COMMENT=	An educational typing tutor starring Tux the Linux Penguin
14
COMMENT=	Educational typing tutor starring Tux the Linux Penguin
15
15
16
LICENSE=	GPLv3 # (or later)
16
LICENSE=	GPLv3 # (or later)
17
17
18
BUILD_DEPENDS=	gsed:${PORTSDIR}/textproc/gsed
18
BUILD_DEPENDS=	gsed:${PORTSDIR}/textproc/gsed
19
19
20
OPTIONS_DEFINE=	NLS SVG DOCS
21
OPTIONS_DEFAULT=	SVG
22
23
WRKSRC=		${WRKDIR}/${PORTNAME}_w_fonts-${PORTVERSION}
20
WRKSRC=		${WRKDIR}/${PORTNAME}_w_fonts-${PORTVERSION}
24
21
22
USES=		gmake iconv perl5 pkgconfig
25
USE_GNOME=	libxml2
23
USE_GNOME=	libxml2
26
USE_SDL=	image mixer net pango sdl
24
USE_SDL=	image mixer net pango sdl
27
USES=		iconv perl5 pkgconfig
28
USE_GMAKE=	yes
29
GNU_CONFIGURE=	yes
25
GNU_CONFIGURE=	yes
30
CONFIGURE_ENV=	T4K_COMMON_CFLAGS="-I${T4K_WRKSRC}/src" \
26
CONFIGURE_ENV=	T4K_COMMON_CFLAGS="-I${T4K_WRKSRC}/src" \
31
		T4K_COMMON_LIBS="${T4K_WRKSRC}/src/.libs/libt4k_common.a" \
27
		T4K_COMMON_LIBS="${T4K_WRKSRC}/src/.libs/libt4k_common.a" \
Lines 35-74 Link Here
35
		-DHAVE_ALPHASORT -DHAVE_SCANDIR -DHAVE_FSYNC -DICONV_CONST=""
31
		-DHAVE_ALPHASORT -DHAVE_SCANDIR -DHAVE_FSYNC -DICONV_CONST=""
36
LDFLAGS+=	$$(pkg-config --libs SDL_Pango) -L${LOCALBASE}/lib ${ICONV_LIB}
32
LDFLAGS+=	$$(pkg-config --libs SDL_Pango) -L${LOCALBASE}/lib ${ICONV_LIB}
37
33
34
OPTIONS_DEFINE=		DOCS NLS SVG
35
OPTIONS_DEFAULT=	SVG
36
OPTIONS_SUB=		yes
37
38
NLS_USES=		gettext
39
NLS_CONFIGURE_ENABLE=	nls
40
SVG_USE_GNOME=		librsvg2
41
SVG_CONFIGURE_WITH=	rsvg
42
38
T4K_NAME=	t4k_common
43
T4K_NAME=	t4k_common
39
T4K_VERSION=	0.1.1
44
T4K_VERSION=	0.1.1
40
T4K_DISTFILE=	${T4K_NAME}-${T4K_VERSION}${EXTRACT_SUFX}
45
T4K_DISTFILE=	${T4K_NAME}-${T4K_VERSION}${EXTRACT_SUFX}
41
T4K_WRKSRC=	${WRKDIR}/${T4K_NAME}-${T4K_VERSION}
46
T4K_WRKSRC=	${WRKDIR}/${T4K_NAME}-${T4K_VERSION}
42
47
43
NO_STAGE=	yes
44
.include <bsd.port.options.mk>
45
46
.if ${PORT_OPTIONS:MNLS}
47
USES+=		gettext
48
PLIST_SUB+=	NLS=""
49
.else
50
CONFIGURE_ARGS+=--disable-nls
51
PLIST_SUB+=	NLS="@comment "
52
.endif
53
54
.if ${PORT_OPTIONS:MSVG}
55
USE_GNOME+=	librsvg2
56
.else
57
CONFIGURE_ARGS+=--without-rsvg
58
.endif
59
60
# use multiple make jobs for T4K_WRKSRC
61
_make_jobs=	-j${MAKE_JOBS_NUMBER}
62
63
post-extract:
48
post-extract:
64
	@${LN} -sf ${T4K_WRKSRC} ${WRKDIR}/${T4K_NAME}
49
	@${LN} -sf ${T4K_WRKSRC} ${WRKDIR}/${T4K_NAME}
65
50
66
post-patch:
51
post-patch:
67
.for file in convert_utf.h mysetenv.h practice.c
52
.for i in convert_utf.h mysetenv.h practice.c
68
	@${ECHO_CMD} >> ${WRKSRC}/src/${file}
53
	@${ECHO_CMD} >> ${WRKSRC}/src/${i}
69
.endfor
54
.endfor
70
	@${REINPLACE_CMD} -e \
55
	@${REINPLACE_CMD} -e \
71
		'/doc[[:space:]]/d' ${WRKSRC}/Makefile.in
56
		'/-R$$found_dir/s|^|#|' ${WRKSRC}/configure
57
	@${REINPLACE_CMD} -e \
58
		'/[[:blank:]]VERSION/d' ${WRKSRC}/config.h.in
59
	@${REINPLACE_CMD} -e \
60
		'/doc[[:blank:]]/d' ${WRKSRC}/Makefile.in
72
	@${REINPLACE_CMD} -e \
61
	@${REINPLACE_CMD} -e \
73
		's|/bin/bash|/bin/sh| ; \
62
		's|/bin/bash|/bin/sh| ; \
74
		 s|^sed |gsed |' ${WRKSRC}/data/scripts/sed-linux.sh
63
		 s|^sed |gsed |' ${WRKSRC}/data/scripts/sed-linux.sh
Lines 86-103 Link Here
86
		CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}")
75
		CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}")
87
76
88
pre-build:
77
pre-build:
89
	@(cd ${T4K_WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
78
	@(cd ${T4K_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \
90
		${MAKEFILE} ${_make_jobs} ${ALL_TARGET})
79
		${MAKEFILE} -j${MAKE_JOBS_NUMBER} ${ALL_TARGET})
91
80
92
post-install:
81
post-install:
93
	@${ECHO_CMD} -n > ${ETCDIR}/.keep_me
82
	@${ECHO_CMD} -n > ${STAGEDIR}${ETCDIR}/.keep_me
94
.if ${PORT_OPTIONS:MDOCS}
83
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
95
	@${MKDIR} ${DOCSDIR}
84
.for i in AUTHORS ChangeLog OFL README TODO
96
.for file in AUTHORS ChangeLog OFL README TODO
85
	(cd ${WRKSRC}/doc && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
97
	${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
98
.endfor
86
.endfor
99
	@${MKDIR} ${DOCSDIR}/en
87
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/en
100
	${INSTALL_DATA} ${WRKSRC}/doc/en/*.html ${DOCSDIR}/en
88
	(cd ${WRKSRC}/doc/en && ${INSTALL_DATA} *.html ${STAGEDIR}${DOCSDIR}/en)
101
.endif
102
89
103
.include <bsd.port.mk>
90
.include <bsd.port.mk>

Return to bug 188146