ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/devel/ncurses/Makefile
Revision: 24154
Committed: Mon Sep 3 18:35:17 2018 UTC (5 years, 8 months ago) by laffer1
File size: 5007 byte(s)
Log Message:
try setting target

File Contents

# Content
1 # $MidnightBSD$
2
3 PORTNAME= ncurses
4 PORTVERSION= ${RELEASE}
5 PORTREVISION= 2
6 CATEGORIES= devel
7 MASTER_SITES= ${MASTER_SITE_GNU}
8 MASTER_SITE_SUBDIR= ${PORTNAME}
9 DIST_SUBDIR= ${PORTNAME}
10
11 MAINTAINER= ports@MidnightBSD.org
12 COMMENT= Library for terminal-independent, full-screen output
13
14 LICENSE= mit
15
16 CONFLICTS= ncurses-devel-[0-9]*
17
18 RELEASE= 5.9
19
20 WITHOUT_WIDEC= yes
21
22 GNU_CONFIGURE= yes
23 CONFIGURE_SCRIPT=../configure
24 CONFIGURE_ARGS= --datadir=${PREFIX}/share/misc --disable-overwrite \
25 --enable-termcap --enable-bsdpad --enable-getcap \
26 --enable-colorfgbg --disable-home-terminfo \
27 --with-pkg-config=no \
28 --includedir=${PREFIX}/include/ncurses \
29 --with-shared \
30 --without-curses-h --with-termlib --program-prefix= \
31 --enable-rpath --disable-root-environ \
32 --with-manpage-format=gzip --srcdir=../
33 CONFIGURE_TARGET= ${ARCH}-portbld-freebsd10.4
34 MAKE_JOBS_UNSAFE= yes
35
36 OPTIONS_DEFINE= EXTCOLORS TRACE DEBUG
37 EXTCOLORS_DESC= 256-color support (only for ncursesw)
38 TRACE_DESC= Add trace() function to all models of ncurses
39
40 CONFIGURE_ENV= gnat_exists="no"
41
42 USE_LDCONFIG= yes
43
44 WIDEC_WRKSRC= ${WRKSRC}/build.widec
45 NOWIDEC_WRKSRC= ${WRKSRC}/build.nowidec
46 WIDEC_EXAMPLESDIR= ${EXAMPLESDIR}/widec
47 NOWIDEC_EXAMPLESDIR= ${EXAMPLESDIR}/nowidec
48 EXAMPLES_TARGETS= NOWIDEC
49
50 CONFIGURE_WRKSRC= ${NOWIDEC_WRKSRC}
51 BUILD_WRKSRC= ${NOWIDEC_WRKSRC}
52 INSTALL_WRKSRC= ${NOWIDEC_WRKSRC}
53
54 NCURSES_ABI_VER= 5
55 NCURSES_REL_VER= ${RELEASE}
56 NCURSESW_ABI_VER= ${NCURSES_ABI_VER}
57 NCURSESW_REL_VER= ${NCURSES_REL_VER}
58
59 PLIST_SUB+= ABI_VER=${NCURSES_ABI_VER} \
60 REL_VER=${NCURSES_REL_VER} \
61 ABI_VER_WIDEC=${NCURSESW_ABI_VER} \
62 REL_VER_WIDEC=${NCURSESW_REL_VER} \
63 WIDEC_EXAMPLESDIR=${WIDEC_EXAMPLESDIR:S,${PREFIX}/,,} \
64 NOWIDEC_EXAMPLESDIR=${NOWIDEC_EXAMPLESDIR:S,${PREFIX}/,,}
65
66 PORTDOCS= *
67 PORTEXAMPLES= *
68
69 DOCS= ANNOUNCE INSTALL NEWS README TO-DO doc/html/announce.html \
70 doc/hackguide.doc doc/html/hackguide.html \
71 doc/html/index.html doc/ncurses-intro.doc \
72 doc/html/ncurses-intro.html
73 EXAMPLES= Makefile README blue.c bs.6 bs.c cardfile.c cardfile.dat \
74 ditto.c dots.c filter.c firework.c firstlast.c gdc.6 \
75 gdc.c hanoi.c hashtest.c knight.c lrtest.c ncurses.c \
76 newdemo.c railroad.c rain.c tclock.c test.priv.h \
77 testaddch.c testcurs.c testscanw.c view.c worm.c \
78 xmas.c
79 EXAMPLES_CPP= Makefile NEWS PROBLEMS README-first cursesapp.cc \
80 cursesapp.h cursesf.cc cursesf.h cursesm.cc cursesm.h \
81 cursesmain.cc cursesp.cc cursesp.h cursesw.cc \
82 cursesw.h cursslk.cc cursslk.h demo.cc etip.h \
83 internal.h
84
85 .include <bsd.mport.options.mk>
86
87 CONFIGURE_ARGS_WIDEC=--enable-widec
88 .if ${PORT_OPTIONS:MEXTCOLORS}
89 CONFIGURE_ARGS_WIDEC+=--enable-ext-colors
90 NCURSESW_ABI_VER= 6
91 NCURSESW_REL_VER= 6.0
92 .endif
93
94 # needed by devel/py-ncurses port
95 .if ${PORT_OPTIONS:MTRACE}
96 CONFIGURE_ARGS+= --with-trace
97 .endif
98
99 .if !defined(WITHOUT_PROFILE) && !defined(NO_PROFILE) && !defined(NOPROFILE)
100 CONFIGURE_ARGS+=--with-profile
101 PLIST_SUB+= PROFILE=""
102 .else
103 CONFIGURE_ARGS+=--without-profile
104 PLIST_SUB+= PROFILE="@comment "
105 .endif
106
107 .if ${PORT_OPTIONS:MDEBUG}
108 CONFIGURE_ARGS+=--without-debug
109 PLIST_SUB+= DEBUG="@comment "
110 .else
111 CONFIGURE_ARGS+=--with-debug
112 PLIST_SUB+= DEBUG=""
113 .endif
114
115 .if !defined(WITHOUT_TERMINFO)
116 CONFIGURE_ARGS+=--with-hashed-db
117 PLIST_SUB+= TERMINFO=""
118 .else # termcap only, easier for updating ncurses in base
119 CONFIGURE_ARGS+=--disable-database
120 PLIST_SUB+= TERMINFO="@comment "
121 .endif
122
123 .if !defined(WITHOUT_WIDEC)
124 PLIST_SUB+= WIDEC=""
125 EXAMPLES_TARGETS+= WIDEC
126 .else
127 PLIST_SUB+= WIDEC="@comment "
128 .endif
129
130 post-extract:
131 @${MKDIR} ${WIDEC_WRKSRC}
132 @${MKDIR} ${NOWIDEC_WRKSRC}
133
134 post-patch:
135 @${REINPLACE_CMD} -e 's,$$(INSTALL_PROG) ncurses-config,@INSTALL_SCRIPT@ ncurses-config,' ${WRKSRC}/misc/Makefile.in
136
137 post-configure:
138 .if !defined(WITHOUT_WIDEC)
139 cd ${.CURDIR} && \
140 ${MAKE} ${.MAKEFLAGS} CONFIGURE_WRKSRC=${WIDEC_WRKSRC} \
141 CONFIGURE_ARGS="${CONFIGURE_ARGS} ${CONFIGURE_ARGS_WIDEC}" \
142 do-configure
143 .endif
144 .for d in test c++
145 .if !defined(WITHOUT_WIDEC)
146 ${CP} -R ${WRKSRC}/${d}/* ${WIDEC_WRKSRC}/${d}/
147 .endif
148 ${CP} -R ${WRKSRC}/${d}/* ${NOWIDEC_WRKSRC}/${d}/
149 .endfor
150
151 post-build:
152 .if !defined(WITHOUT_WIDEC)
153 cd ${.CURDIR} && \
154 ${MAKE} ${.MAKEFLAGS} BUILD_WRKSRC=${WIDEC_WRKSRC} do-build
155 .endif
156
157 post-install:
158 .if !defined(WITHOUT_WIDEC)
159 cd ${.CURDIR} && \
160 ${MAKE} ${.MAKEFLAGS} INSTALL_WRKSRC=${WIDEC_WRKSRC} do-install
161 .endif
162
163 .if ${PORT_OPTIONS:MEXAMPLES}
164 . for i in ${EXAMPLES_TARGETS}
165 ${MKDIR} ${${i}_EXAMPLESDIR}/c++
166 . for f in ${EXAMPLES}
167 ${INSTALL_DATA} ${${i}_WRKSRC}/test/${f} ${${i}_EXAMPLESDIR}/
168 . endfor
169 ${INSTALL_SCRIPT} ${${i}_WRKSRC}/test/tracemunch ${${i}_EXAMPLESDIR}/
170 . for f in ${EXAMPLES_CPP}
171 ${INSTALL_DATA} ${${i}_WRKSRC}/c++/${f} ${${i}_EXAMPLESDIR}/c++/
172 . endfor
173 . endfor
174 .endif
175
176 .if !defined(WITHOUT_TERMINFO)
177 ${FIND} ${PREFIX}/share/misc -name "*.terminfo" -exec ${PREFIX}/bin/tic {} \;
178 .endif
179
180 .if ${PORT_OPTIONS:MDOCS}
181 ${MKDIR} ${DOCSDIR}
182 . for f in ${DOCS}
183 ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
184 . endfor
185 .endif
186
187 .include <bsd.port.mk>

Properties

Name Value
svn:keywords MidnightBSD=%H