aboutsummaryrefslogtreecommitdiffstats
path: root/devel/openzz/Makefile
blob: 44814d638836c2698c68c5cd2ef51044e964ff73 (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=   openzz
DISTVERSION=    1.0.4-4
PORTREVISION=   5
CATEGORIES= devel
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-1.0.4-4

MAINTAINER= ports@FreeBSD.org
COMMENT=    Interpreted dynamic parser

LICENSE=    LGPL21+
LICENSE_FILE=   ${WRKSRC}/COPYING

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}

GNU_CONFIGURE=  yes
CFLAGS+=    -Wno-return-type
USES=       libtool readline
USE_LDCONFIG=   yes

post-patch:
    @${REINPLACE_CMD} -e "s/cfree/free/g" ${WRKSRC}/src/list.c
    @${REINPLACE_CMD} -e "s/argv\[\]/*argv/" ${WRKSRC}/src/zzbind.h

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so

.include <bsd.port.mk>