Lines 2-50
Link Here
|
2 |
# $FreeBSD: head/devel/rhtvision/Makefile 327726 2013-09-20 17:17:44Z bapt $ |
2 |
# $FreeBSD: head/devel/rhtvision/Makefile 327726 2013-09-20 17:17:44Z bapt $ |
3 |
|
3 |
|
4 |
PORTNAME= rhtvision |
4 |
PORTNAME= rhtvision |
5 |
PORTVERSION= 2.1.0 |
5 |
PORTVERSION= 2.2.1.1 |
6 |
PORTREVISION= 1 |
|
|
7 |
CATEGORIES= devel |
6 |
CATEGORIES= devel |
8 |
MASTER_SITES= SF/tvision/UNIX/${PORTVERSION}%20CVS20070425%20Source%20and%20Debian%204.0/ |
7 |
MASTER_SITES= SF/tvision/UNIX/${PORTVERSION:R}%20CVS20100714%20Source%20and%20Debian%205.0 |
9 |
DISTNAME= rhtvision-${PORTVERSION}-3.src |
8 |
DISTNAME= ${PORTNAME}_${PORTVERSION:R}-${PORTVERSION:E} |
10 |
|
9 |
|
11 |
MAINTAINER= ports@FreeBSD.org |
10 |
MAINTAINER= ports@FreeBSD.org |
12 |
COMMENT= Complete C++ Text User Interface (TUI) library |
11 |
COMMENT= Complete C++ Text User Interface (TUI) library |
13 |
|
12 |
|
|
|
13 |
OPTIONS_DEFINE= NLS X11 |
14 |
OPTIONS_SUB= yes |
15 |
|
14 |
WRKSRC= ${WRKDIR}/tvision |
16 |
WRKSRC= ${WRKDIR}/tvision |
15 |
USES= perl5 |
17 |
|
16 |
USE_GMAKE= yes |
18 |
USES= gmake perl5 shebangfix |
17 |
USE_LDCONFIG= yes |
19 |
SHEBANG_FILES= config.pl confignt.pl conflib.pl linux/compress |
|
|
20 |
USE_GCC= any |
18 |
HAS_CONFIGURE= yes |
21 |
HAS_CONFIGURE= yes |
19 |
CONFIGURE_ARGS= --prefix=${PREFIX} |
22 |
CONFIGURE_ARGS= --prefix=${STAGEDIR}${PREFIX} \ |
|
|
23 |
--real-prefix=${PREFIX} \ |
24 |
--no-libs-here |
25 |
USE_LDCONFIG= yes |
26 |
|
27 |
CFLAGS+= -I${LOCALBASE}/include |
28 |
LDFLAGS+= -L${LOCALBASE}/lib |
29 |
|
30 |
PLIST_SUB= VERSION="${PORTVERSION:R}" |
20 |
|
31 |
|
21 |
NO_STAGE= yes |
|
|
22 |
.include <bsd.port.options.mk> |
32 |
.include <bsd.port.options.mk> |
23 |
|
33 |
|
24 |
.if ${PORT_OPTIONS:MNLS} |
34 |
.if ${PORT_OPTIONS:MNLS} |
25 |
USES+= gettext |
35 |
USES+= gettext |
|
|
36 |
.else |
37 |
CONFIGURE_ARGS+=--no-intl |
26 |
.endif |
38 |
.endif |
27 |
|
39 |
|
28 |
.if ${PORT_OPTIONS:MX11} |
40 |
.if ${PORT_OPTIONS:MX11} |
29 |
USE_XORG= x11 xrender xmu sm xt ice |
41 |
USE_XORG= x11 xmu |
30 |
PLIST_SUB+= X11_ONLY="" |
42 |
CONFIGURE_ARGS+=--x-include=${LOCALBASE}/include \ |
31 |
CFLAGS+= -I${LOCALBASE}/include |
43 |
--x-lib=${LOCALBASE}/lib |
32 |
.else |
44 |
.else |
33 |
PLIST_SUB+= X11_ONLY="@comment " |
45 |
CONFIGURE_ARGS+=--X11lib=no |
34 |
|
|
|
35 |
pre-configure: |
36 |
${ECHO} "HAVE_X11 => no" > ${WRKSRC}/configure.cache |
37 |
.endif |
46 |
.endif |
38 |
|
47 |
|
39 |
post-patch: |
48 |
post-install: |
40 |
.for f in config.pl confignt.pl conflib.pl linux/compress Makefile.in |
49 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/rhtv-config |
41 |
@${REINPLACE_CMD} -e 's,/usr/bin/perl,${PERL5},g' \ |
|
|
42 |
-e 's,/usr/local,${LOCALBASE},g' \ |
43 |
-e 's,/usr/X11R6,${LOCALBASE},g' \ |
44 |
-e 's,\(soname.*\)Version,\1VersionMajor,g' \ |
45 |
-e 's/\tmake/\t\\$$(MAKE)/g' \ |
46 |
-e 's/ make/ $$(MAKE)/g' \ |
47 |
${WRKSRC}/${f} |
48 |
.endfor |
49 |
|
50 |
|
50 |
.include <bsd.port.mk> |
51 |
.include <bsd.port.mk> |