aboutsummaryrefslogtreecommitdiffstats
path: root/cad/atlc/Makefile
blob: 2cbe7bc963b5e834cccc378364bc54b29bd07fe8 (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
# New ports collection makefile for:    atlc
# Date created:             9 November 2002
# Whom:                 Marc Fonvieille <blackend@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   atlc
PORTVERSION=    4.0.1
CATEGORIES= cad
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE:S/%SUBDIR%/atlc/}
DISTNAME=   ${PORTNAME}-${PORTVERSION}

MAINTAINER= blackend@FreeBSD.org

USE_REINPLACE=  YES
GNU_CONFIGURE=  YES

MAN1=       atlc.1 rect_in_rect.1 circ_in_circ.1 \
        circ_in_rect.1 rect_cen_in_rect.1 readbin.1 sym_strip.1

pre-everything::
    @${ECHO_MSG}
.if !defined(WITH_OPTIMIZED_CFLAGS)
    @${ECHO_MSG} "You can enable additional compilation optimizations"
    @${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS"
.endif
    @${ECHO_MSG}

post-patch:
.if !defined(WITH_OPTIMIZED_CFLAGS)
        @${REINPLACE_CMD} -E -e 's,-O(2|3),,' \
            ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
.endif

post-install:
        @${MKDIR} ${PREFIX}/share/examples/atlc
        @${CP} ${WRKDIR}/${DISTNAME}/examples/*.bmp \
            ${PREFIX}/share/examples/atlc
.if !defined(NOPORTDOCS)
        @${MKDIR} ${PREFIX}/share/doc/atlc
        @${INSTALL_DATA} \
            ${WRKDIR}/${DISTNAME}/docs/html-docs/*.html \
            ${PREFIX}/share/doc/atlc
        @${MKDIR} ${PREFIX}/share/doc/atlc/jpgs
        @${INSTALL_DATA} \
            ${WRKDIR}/${DISTNAME}/docs/html-docs/jpgs/*.jpg \
            ${PREFIX}/share/doc/atlc/jpgs
.endif

.include <bsd.port.mk>