aboutsummaryrefslogtreecommitdiffstats
path: root/science/gabedit/Makefile
blob: 1b8c80afb8a31d7f46be49b576d9bf5b19d8a1fe (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
# $FreeBSD$

PORTNAME=   gabedit
DISTVERSION=    2.5.0
CATEGORIES= science
MASTER_SITES=   http://prdownloads.sourceforge.net/${PORTNAME}/
DISTNAME=   GabeditSrc${DISTVERSION:S/.//g}

MAINTAINER= yuri@FreeBSD.org
COMMENT=    Graphical user interface for several chemistry software packages

LICENSE=    MIT
LICENSE_FILE=   ${WRKSRC}/License

LIB_DEPENDS=    libfontconfig.so:x11-fonts/fontconfig \
        libfreetype.so:print/freetype2 \
        libgtkglext-x11-1.0.so:x11-toolkits/gtkglext \
        libomp.so:devel/openmp

USES=       gettext-runtime gmake pkgconfig
USE_GNOME=  atk cairo gdkpixbuf2 glib20 gtk20 pango pangox-compat
USE_GL=     gl glu
USE_XORG=   x11
INSTALLS_ICONS= yes

WRKSRC=     ${WRKDIR}/GabeditSrc250

BINARY_ALIAS=   make=gmake

PLIST_FILES=    bin/gabedit \
        share/applications/gabedit.desktop

ICON_SIZES= 16 24 32 48
.for SZ in ${ICON_SIZES}
PLIST_FILES+=   share/icons/hicolor/${SZ}x${SZ}/apps/gabedit.png
.endfor

post-patch:
    @${REINPLACE_CMD} 's|/usr/|${PREFIX}/|; s| -O2| ${CFLAGS}|; s|gcc|${CC}|' ${WRKSRC}/CONFIG

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
    ${INSTALL_DATA} ${WRKSRC}/utils/Others/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}
.for SZ in ${ICON_SIZES}
    @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${SZ}x${SZ}/apps
    ${INSTALL_DATA} ${WRKSRC}/icons/Gabedit${SZ}.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/${SZ}x${SZ}/apps/${PORTNAME}.png
.endfor

.include <bsd.port.mk>