aboutsummaryrefslogtreecommitdiffstats
path: root/science/linsmith/Makefile
blob: 9a73e496bfae25055992062cce69bee47cb038a0 (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=   linsmith
PORTVERSION=    0.99.24
PORTREVISION=   1
CATEGORIES= science hamradio
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Smith charting program

LICENSE=    GPLv2 # (or later)

USE_GNOME=  libgnomeui libxml2
USE_ICONV=  yes
USES=       gettext
GNU_CONFIGURE=  yes
MAKE_JOBS_SAFE= yes

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

post-patch:
    @${CP} ${FILESDIR}/carg.c  ${WRKSRC}/src
    @${REINPLACE_CMD} -e \
        '/^Icon/s|=.*|=linsmith_icon|' ${WRKSRC}/linsmith.desktop

post-install:
    @${MKDIR} ${DESKTOPDIR}
    (cd ${WRKSRC} \
        && ${INSTALL_DATA} linsmith.desktop ${DESKTOPDIR})
    (cd ${WRKSRC} \
        && ${INSTALL_DATA} linsmith_icon.xpm ${PREFIX}/share/pixmaps)

.include <bsd.port.mk>