aboutsummaryrefslogtreecommitdiffstats
path: root/devel/newt/Makefile
blob: 9af10543ede9a9f34933b0afd003bfbe9f07c214 (plain) (blame)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# $FreeBSD$

PORTNAME=   newt
PORTVERSION=    0.52.18
CATEGORIES= devel
MASTER_SITES=   https://fedorahosted.org/releases/n/e/newt/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Not Eriks Windowing Toolkit: console I/O handling library

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libslang.so:${PORTSDIR}/devel/libslang2 \
        libpopt.so:${PORTSDIR}/devel/popt

USES=       gmake ncurses
GNU_CONFIGURE=  yes
MAKE_ENV=   PCFLAGS="${CFLAGS}"
USE_LDCONFIG=   yes
MAKE_JOBS_UNSAFE=   yes

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib -lncurses

PLIST_SUB=  SOVERSION="${SOVERSION}" \
        VERSION="${PORTVERSION}"

SUB_FILES=  pkgIndex.tcl
SUB_LIST=   VERSION="${PORTVERSION}"

OPTIONS_DEFINE=     NLS PYTHON TCL
OPTIONS_DEFAULT=    PYTHON
OPTIONS_SUB=        yes

NLS_USES=       gettext
NLS_CONFIGURE_ENABLE=   nls
PYTHON_USES=        python
PYTHON_CONFIGURE_WITH=  python
TCL_USES=       tcl
TCL_CONFIGURE_ENV=  ac_cv_c_tclconfig=${TCL_LIBDIR:Q}
TCL_CONFIGURE_WITH= tcl
TCL_CPPFLAGS=       -I${TCL_INCLUDEDIR:Q}

SOVERSION=  ${PORTVERSION:R:E}

post-patch:
    @${REINPLACE_CMD} -e \
        '/^SONAME/s|=.*|=${SOVERSION}| ; \
         s|-DUSE_INTERP_RESULT||' ${WRKSRC}/configure
    @${REINPLACE_CMD} -e \
        's|@CPP@|@CC@ -E| ; \
         s|-I/usr/include/slang|| ; \
         /^pkgconfigdir/s|=.*|=${PREFIX}/libdata/pkgconfig| ; \
         s| -g | |g ; \
         /make -C/s|^|#| ; \
         /whiptcl.$$(SOEXT)/s|install|${TRUE}|' ${WRKSRC}/Makefile.in

post-patch-PYTHON-on:
    @${REINPLACE_CMD} -e \
        '/PYTHONVERS/s|=.*|=${PYTHON_VERSION}|' ${WRKSRC}/configure

post-install:
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/whiptail
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libnewt.so

post-install-NLS-on:
    @(cd ${WRKSRC}/po && ${DO_MAKE_BUILD} ${MAKE_ARGS} \
        datadir=${STAGEDIR}${PREFIX}/share ${INSTALL_TARGET})

post-install-PYTHON-on:
    @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_snack.so

post-install-TCL-on:
    @${MKDIR} ${STAGEDIR}${PREFIX}/lib/whip${PORTVERSION}
    (cd ${WRKSRC} && ${INSTALL_LIB} whiptcl.so \
        ${STAGEDIR}${PREFIX}/lib/whip${PORTVERSION})
    (cd ${WRKDIR} && ${INSTALL_DATA} pkgIndex.tcl \
        ${STAGEDIR}${PREFIX}/lib/whip${PORTVERSION})

.include <bsd.port.mk>
ctnetchild2004-06-031-2/+2 * Update to 8.0.066.p067.1.netchild2004-06-032-2/+3 * icc 8.0.066 now adds "-m elf_i386" in some circumstances. Remove this partnetchild2004-05-072-1/+4 * Update to 8.0.066.netchild2004-04-302-5/+3 * Update to 8.0.058.p063.1.netchild2004-03-273-6/+18 * Update to 8.0.058.p061.netchild2004-03-176-30/+60 * - some base system headers know about icc now, don't override themnetchild2004-03-132-5/+18 * Update to 8.0.058.p060.netchild2004-02-263-4/+4 * icc & icc7:netchild2004-02-011-46/+46 * - update to 8.0.058.p059netchild2004-01-302-5/+6 * Use the CPIO macro defined in bsd.port.mk.trevor2004-01-221-1/+0 * - update to 8.0.058netchild2004-01-192-10/+8 * Update to 8.0.055.p057.netchild2004-01-1127-2439/+2812 * - use the libc cxa support on a recent -current instead of the hacknetchild2003-12-222-106/+85 * - Update to 7.1.034.netchild2003-12-133-10/+6 * s/rpm2cpio/rpm2cpio.pl/ after the recent update of archivers/rpm2cpio (thenetchild2003-12-121-2/+2 * Update to 7.1.033.netchild2003-12-082-8/+8 * correct the syntax of the warning -> error optionsnetchild2003-11-141-1/+1 * - Update to 7.1.032.netchild2003-11-143-150/+67 * Use the FIND and XARGS macros introduced in bsd.port.mk 1.391.trevor2003-11-131-2/+2 * Add a paragraph about Intels support in the post-install message.netchild2003-11-111-0/+5 * - Fix icc and icpc scripts (variable overriding) [1]netchild2003-10-223-16/+31 * Update to 7.1.031.netchild2003-10-212-9/+9 * Reword IGNORE text.netchild2003-10-111-1/+1 * Commit the correct md5 sum.netchild2003-10-041-1/+1 * Update to 7.1.030.netchild2003-10-032-8/+8 * Update to 7.1.029.netchild2003-09-242-8/+8 * Update to 7.1.028.netchild2003-09-063-15/+14 * Fix __sigsetjmp linking problem.netchild2003-08-221-2/+3 * - Update to 7.1.027.netchild2003-08-213-8/+12 * - Update to 7.1.025.netchild2003-08-152-9/+27 * Update to 7.1.021.netchild2003-07-113-8/+9 * Update to 7.1.019.netchild2003-06-263-8/+10 * Fix the "make fetch" help string.netchild2003-06-161-1/+1 * Update to 7.1.018.netchild2003-06-123-10/+10 * Update to 7.1.017.netchild2003-06-052-9/+9 * Update MD5 after the file changed on the server (IA64 license-check binarynetchild2003-05-091-1/+1 * Update to 7.1.014.netchild2003-05-062-9/+9 * When trying to link dynamic libraries with dependancies, e.g:netchild2003-04-262-0/+5 * Update to 7.1.011.netchild2003-04-242-10/+9 * - back out special '-I' handling, it causes problems with the stlport [1]netchild2003-04-183-5/+13 * The new version of icc adds -I include paths before the standard includenetchild2003-04-023-2/+3 * - Update to 7.1.006.netchild2003-03-286-288/+685 * Clear moonlight beckons.ade2003-03-072-1/+1 * Update to 7.0.086.netchild2003-03-062-8/+8 * Update to 7.0.083.netchild2003-02-152-8/+8 * - update to 7.0.082netchild2003-02-1010-21/+78 * Remove the "warning -> error" options for excessive function arguments,netchild2003-01-131-1/+2 * Add missing files for the 7.0.078 update.netchild2003-01-1214-0/+1047 * Update icc to 7.0.078.netchild2003-01-129-1129/+1131 * - fix typo in messagenetchild2002-11-131-2/+3 * - mark BROKEN when linux_devtools or ifc is installednetchild2002-11-091-2/+7 * - Keep up with changes on -current (__sF, elf_i386 -> elf_i386_fbsd).netchild2002-11-084-22/+95 * - link libc_pic.a when compiling with "-KPIC -static"netchild2002-09-226-18/+141 * Add another possible download site (it isn't guaranteed that te file isnetchild2002-09-201-1/+1 * - Update to 6.0.1.304.netchild2002-09-207-48/+65 * - C++ support: fix to work also on -current, work around broken exceptionnetchild2002-09-1711-156/+635 * Fix syntax error in the no distfile case.netchild2002-08-221-1/+1 * - add category: develnetchild2002-08-207-85/+236 * 1) The new icc doesn't respect icc.cfg, solve this issue.netchild2002-08-052-3/+10 * Document the bad interaction with the linux-devtools port.netchild2002-07-151-0/+3 * Update to 6.0.159.netchild2002-07-132-9/+9 * Add another download location.netchild2002-07-021-1/+1 * Get the IGNORE warning working. ${DISTFILES} cannot be referenced inknu2002-06-141-1/+1 * - update to icc 6.0.149netchild2002-06-083-15/+17 * Explict dependancy on version 7 of linux_base is not needed anymore.obrien2002-05-281-2/+1 * Oops, last commit was an old version, this one is at least able to linknetchild2002-05-141-2/+3 * Wrapper script for ld, needed to link native binaries.netchild2002-05-141-0/+65 * 1) Document some steps in the targets of the Makefile.netchild2002-05-142-3/+19 * Corrections to some paths in descriptive messages, no need to bump thenetchild2002-05-142-2/+2 * Update icc from 5.0.1 to 6.0.139.netchild2002-05-135-835/+859 * Unbreak for 4.x.netchild2002-04-241-1/+1 * Style fixes.netchild2002-04-161-8/+8 * Spelling fix.netchild2002-04-161-1/+1 * - reword pkg-descrnetchild2002-04-013-11/+31