Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= icon |
8 |
PORTNAME= icon |
9 |
PORTVERSION= 9.4.0 |
9 |
PORTVERSION= 9.4.1 |
10 |
CATEGORIES= lang |
10 |
CATEGORIES= lang |
11 |
MASTER_SITES= http://www.cs.arizona.edu/icon/ftp/packages/unix/ |
11 |
MASTER_SITES= http://www.cs.arizona.edu/icon/ftp/packages/unix/ |
12 |
DISTNAME= ${PORTNAME}.v${PORTVERSION:S/.//g}src |
12 |
DISTNAME= ${PORTNAME}.v${PORTVERSION:S/.//g}src |
Lines 16-22
Link Here
|
16 |
|
16 |
|
17 |
ONLY_FOR_ARCHS= alpha i386 |
17 |
ONLY_FOR_ARCHS= alpha i386 |
18 |
|
18 |
|
19 |
.ifdef WITHOUT_X11 |
19 |
USE_REINPLACE= yes |
|
|
20 |
ALL_TARGET= All |
21 |
|
22 |
MAN1= icont.1 |
23 |
|
24 |
ARCH_NAME= ${OPSYS:L} |
25 |
ICONDIR= ${PREFIX}/lib/${PORTNAME} |
26 |
|
27 |
.if defined(WITHOUT_X11) |
20 |
CONFIG_CMD= Configure |
28 |
CONFIG_CMD= Configure |
21 |
PLIST_SUB= WITHOUT_X11="@comment " |
29 |
PLIST_SUB= WITHOUT_X11="@comment " |
22 |
.else |
30 |
.else |
Lines 25-68
Link Here
|
25 |
CONFIG_CMD= X-Configure |
33 |
CONFIG_CMD= X-Configure |
26 |
PLIST_SUB= WITHOUT_X11= |
34 |
PLIST_SUB= WITHOUT_X11= |
27 |
.endif |
35 |
.endif |
28 |
USE_REINPLACE= yes |
|
|
29 |
ALL_TARGET= All |
30 |
|
31 |
MAN1= icont.1 |
32 |
|
36 |
|
33 |
ARCH_NAME= ${ARCH:S/i386/intel/}_${OPSYS:L} |
37 |
post-patch: |
34 |
ICONDIR= ${PREFIX}/lib/${PORTNAME} |
|
|
35 |
|
36 |
pre-patch: |
37 |
@${REINPLACE_CMD} -e "s|^CC.*|CC=${CC}|g ; \ |
38 |
@${REINPLACE_CMD} -e "s|^CC.*|CC=${CC}|g ; \ |
38 |
s|^CFLAGS.*|CFLAGS=${CFLAGS}|g ; \ |
39 |
s|^CFLAGS.*|CFLAGS=${CFLAGS}|g ; \ |
39 |
s|^XLIBS.*|XLIBS=-L${X11BASE}/lib -lX11|g" \ |
40 |
s|^XLIBS.*|XLIBS=-L${X11BASE}/lib -lX11|g" \ |
40 |
${WRKSRC}/config/unix/${ARCH_NAME}/Makedefs |
41 |
${WRKSRC}/config/unix/${ARCH_NAME}/Makedefs |
41 |
@${REINPLACE_CMD} -e 's|/opt/icon|${ICONDIR}|g' ${WRKSRC}/ipl/BuildBin |
42 |
@${REINPLACE_CMD} -e 's|/opt/icon|${ICONDIR}|g' ${WRKSRC}/ipl/BuildBin |
|
|
43 |
@${REINPLACE_CMD} -e 's|ld -Bshareable|\$$CC -shared|g ; \ |
44 |
s|-lc||g' ${WRKSRC}/ipl/cfuncs/mklib.sh |
42 |
|
45 |
|
43 |
do-configure: |
46 |
do-configure: |
44 |
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \ |
47 |
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \ |
45 |
${MAKEFILE} ${MAKE_ARGS} ${CONFIG_CMD} name=${ARCH_NAME}) |
48 |
${MAKEFILE} ${MAKE_ARGS} ${CONFIG_CMD} name=${ARCH_NAME}) |
46 |
|
49 |
|
47 |
do-install: |
50 |
do-install: |
48 |
${INSTALL_MAN} ${WRKSRC}/man/man1/icont.1 ${PREFIX}/man/man1 |
51 |
${INSTALL_MAN} ${WRKSRC}/man/man1/icont.1 ${MANPREFIX}/man/man1 |
49 |
@${MKDIR} ${ICONDIR}/bin |
52 |
@${MKDIR} ${ICONDIR}/bin |
50 |
.for file in icont iconx patchstr |
53 |
.for file in icont iconx patchstr |
51 |
${INSTALL_PROGRAM} ${WRKSRC}/bin/${file} ${ICONDIR}/bin |
54 |
${INSTALL_PROGRAM} ${WRKSRC}/bin/${file} ${ICONDIR}/bin/${file} |
52 |
.endfor |
|
|
53 |
.ifndef WITHOUT_X11 |
54 |
.for file in colrbook colrpick fontpick ipatch palette vib wevents xgamma |
55 |
${INSTALL_SCRIPT} ${WRKSRC}/bin/${file} ${ICONDIR}/bin |
56 |
.endfor |
55 |
.endfor |
57 |
.endif |
|
|
58 |
.for file in icont iconx |
56 |
.for file in icont iconx |
59 |
@${LN} -sf ${ICONDIR}/bin/${file} ${PREFIX}/bin/${file} |
57 |
@${LN} -sf ${ICONDIR}/bin/${file} ${PREFIX}/bin/${file} |
60 |
.endfor |
58 |
.endfor |
61 |
.ifndef WITHOUT_X11 |
|
|
62 |
@${LN} -sf ${ICONDIR}/bin/vib ${PREFIX}/bin/vib |
63 |
.endif |
64 |
@${MKDIR} ${ICONDIR}/lib |
59 |
@${MKDIR} ${ICONDIR}/lib |
65 |
${INSTALL_DATA} ${WRKSRC}/lib/*.* ${ICONDIR}/lib |
60 |
${INSTALL_DATA} ${WRKSRC}/lib/*.* ${ICONDIR}/lib |
|
|
61 |
.if !defined(WITHOUT_X11) |
62 |
.for file in colrbook colrpick fontpick ipatch palette vib wevents xgamma |
63 |
${INSTALL_SCRIPT} ${WRKSRC}/bin/${file} ${ICONDIR}/bin/${file} |
64 |
.endfor |
65 |
@${LN} -sf ${ICONDIR}/bin/vib ${PREFIX}/bin/vib |
66 |
.endif |
66 |
.if !defined(NOPORTDOCS) |
67 |
.if !defined(NOPORTDOCS) |
67 |
@${MKDIR} ${DOCSDIR} |
68 |
@${MKDIR} ${DOCSDIR} |
68 |
${INSTALL_DATA} ${WRKSRC}/doc/*.* ${DOCSDIR} |
69 |
${INSTALL_DATA} ${WRKSRC}/doc/*.* ${DOCSDIR} |