aboutsummaryrefslogtreecommitdiffstats
path: root/cad/freehdl/Makefile
blob: 5c5ff1904c08dcd5c5ef31d237df5a60c098b9c2 (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
# Created by: lon_kamikaze@gmx.de
# $FreeBSD$

PORTNAME=   freehdl
PORTVERSION=    0.0.7
CATEGORIES= cad
MASTER_SITES=   http://freehdl.seul.org/~enaroska/

MAINTAINER= kamikaze@bsdforen.de
COMMENT=    Free VHDL simulator

USE_LDCONFIG=   yes
USES=       gmake perl5 pkgconfig
USE_GNOME=  gnomehack
USE_AUTOTOOLS=  libtool
HAS_CONFIGURE=  yes

MAN1=       freehdl-config.1 \
        freehdl-gennodes.1 \
        freehdl-v2cc.1 \
        gvhdl.1
MAN5=       v2cc.libs.5

INFO=       fire

MANCOMPRESSED=  no

PLIST_TMP=  ${WRKDIR}/plist_tmp/

PLIST_REPL= ${SED} "s|share/${PORTNAME}|%%DATADIR%%|1"

plist: build
    @${ECHO} "===>  Rebuilding PLIST."
    @${TOUCH} ${PLIST}
    @${RM} ${PLIST}
    @cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} \
        ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} \
        prefix=${PLIST_TMP} \
        mandir=${PLIST_TMP}/man \
        infodir=${PLIST_TMP}/info \
        ${INSTALL_TARGET}
    @${RM} -rf ${PLIST_TMP}/man ${PLIST_TMP}/info
    @${FIND} -d ${PLIST_TMP} -not -type d \
        | ${SED} "s|${PLIST_TMP}||1" \
        | ${PLIST_REPL} >> ${PLIST}
    @${FIND} -d ${PLIST_TMP} -type d -mindepth 2 \
        | ${SED} "s|${PLIST_TMP}|@dirrm |1" \
        | ${PLIST_REPL} \
        | ${GREP} -E '%%DATADIR%%|freehdl' >> ${PLIST}
    @${FIND} -d ${PLIST_TMP} -type d -mindepth 2 \
        | ${SED} "s|${PLIST_TMP}|@dirrmtry |1" \
        | ${PLIST_REPL} \
        | ${GREP} -vE '%%DATADIR%%|freehdl' >> ${PLIST}
    @${RM} -rf ${PLIST_TMP}

.include <bsd.port.mk>