aboutsummaryrefslogtreecommitdiffstats
path: root/devel/newt/Makefile
blob: 629de27a61ba571f058591b6da1eae538ce365c7 (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
# New ports collection makefile for:    newt
# Date created:     08 Jan 2000
# Whom:         Will Andrews <andrews@technologist.com>
#
# $FreeBSD$
#

PORTNAME=   newt
PORTVERSION=    0.50.8.2
CATEGORIES= devel
MASTER_SITES=   \
    ftp://ftp.freesoftware.com/pub/linux/redhat/redhat-6.2/SRPMS/SRPMS/ \
    ftp://ftp.redhat.com/pub/redhat/redhat-6.2/SRPMS/SRPMS/ \
    ftp://ftp.infomagic.com/pub/mirrors/linux/RedHat/redhat-6.2/SRPMS/SRPMS/
DISTNAME=   ${PORTNAME}-0.50.8-2
EXTRACT_SUFX=   .src.rpm

MAINTAINER= ports@FreeBSD.org

LIB_DEPENDS=    slang.1:${PORTSDIR}/devel/libslang \
        tcl82.1:${PORTSDIR}/lang/tcl82 \
        popt.0:${PORTSDIR}/devel/popt
BUILD_DEPENDS=  rpm2cpio:${PORTSDIR}/misc/rpm \
        python:${PORTSDIR}/lang/python

USE_GMAKE=  yes
GNU_CONFIGURE=  yes
INSTALLS_SHLIB= yes
WRKSRC=     ${WRKDIR}/newt-0.50.8
VERSION=    0
MAKE_ENV+=  prefix=${PREFIX} VERSION=${VERSION} CC=${CC} PCFLAGS="${CFLAGS}"
PLIST_SUB+= VERSION="${VERSION}"
CPIO?=      /usr/bin/cpio

do-extract:
    @${RM} -rf ${WRKDIR}
    @${MKDIR} ${WRKDIR}
    @${LOCALBASE}/bin/rpm2cpio ${_DISTDIR}${DISTFILES} | (cd ${WRKDIR};${CPIO} -i)
    @${TAR} xfz ${WRKSRC}.tar.gz -C ${WRKDIR}

.include <bsd.port.mk>