aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/fig2sxd/Makefile
blob: e19d24c03648cb3828a9c1c4ed53b76bf37e5ea3 (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
# New ports collection makefile for:    fig2sxd
# Date created:             6 Sep 2005
# Whom:                 Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#

PORTNAME=   fig2sxd
PORTVERSION=    0.17
CATEGORIES= graphics converters
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=   ${PORTNAME}_${PORTVERSION}.orig

MAINTAINER= ehaupt@FreeBSD.org
COMMENT=    Convert .xfig files to the OpenOffice draw format

USE_GMAKE=  yes
USE_GCC=    3.4+

WRKSRC=     ${WRKDIR}/${DISTNAME:C/_/-/}

MAN1=       fig2sxd.1
PLIST_FILES=    bin/fig2sxd

post-patch:
    @${REINPLACE_CMD} -e \
        '/^CXX/d; s|^\(all:\).*|\1 $$(TARGET1) fig2sxd.1|' \
            ${WRKSRC}/${MAKEFILE}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1

.include <bsd.port.mk>