aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/cenon/Makefile
blob: 41aee31f8858c40690d5744913c061caf6bc3775 (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
# New ports collection makefile for:    Cenon
# Date created:             16 Nov 2005
# Whom:                 Alexey Dokuchaev <danfe@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   cenon
PORTVERSION=    3.83
PORTREVISION=   2
CATEGORIES= graphics gnustep
MASTER_SITES=   http://www.vhf-group.com/vhfInterservice/download/source/
DISTNAME=   Cenon-${PORTVERSION}
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX}
DIST_SUBDIR=    ${PORTNAME}
EXTRACT_ONLY=   ${DISTNAME}${EXTRACT_SUFX}

MAINTAINER= dinoex@FreeBSD.org
COMMENT=    A vector graphics tool for GNUstep

USE_BZIP2=  yes
USE_GNUSTEP=    yes
USE_GNUSTEP_PREFIX= yes
USE_GNUSTEP_BACK=   yes
USE_GNUSTEP_BUILD=  yes
USE_GNUSTEP_INSTALL=    yes

WRKSRC=     ${WRKDIR}/Cenon
FULLVERSION=    3.82
CENON_LIB_DIR=  ${GNUSTEP_LOCAL_ROOT}/Library/Cenon

OPTIONS=    FULL_LIBRARY    "Install complete Cenon Library" off

.include <bsd.port.pre.mk>

.if defined(WITH_FULL_LIBRARY) || make(makesum) || defined(FETCH_ALL)
DISTFILES+= CenonLibrary-${FULLVERSION}-1${EXTRACT_SUFX}
PLIST_SUB+= FULL=""
.else
PLIST_SUB+= FULL="@comment "
.endif

post-extract:
    @${REINPLACE_CMD} '/cp -R Library/d' ${WRKSRC}/GNUmakefile.postamble
    @${RM} -f ${WRKSRC}/Library/Cenon/Devices/gerber/gerber.doc
    @${FIND} ${WRKSRC}/Library -name COPYING -delete

post-install:
.if defined(WITH_FULL_LIBRARY)
    ${TAR} xyvf ${_DISTDIR}/CenonLibrary-${FULLVERSION}-1${EXTRACT_SUFX} \
        -C ${GNUSTEP_LOCAL_ROOT}/Library/ --exclude COPYING
    @${CHOWN} -R root:wheel ${CENON_LIB_DIR}
    @${CHMOD} -R u=rwX,go=rX ${CENON_LIB_DIR}
    @${CHMOD} 444 ${CENON_LIB_DIR}/INSTALL
    ${INSTALL_DATA} ${WRKSRC}/Library/Cenon/README ${CENON_LIB_DIR}/
.else
    ${CP} -R ${WRKSRC}/Library/Cenon ${GNUSTEP_LOCAL_ROOT}/Library/
.endif
    ${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${CENON_LIB_DIR}/

.include <bsd.port.post.mk>