blob: f844dc53783c852c8cf3394f05227b02cf30c6b3 (
plain)
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
|
PORTNAME= DRAWxtl
DISTVERSION= 5.5
CATEGORIES= science
MASTER_SITES= https://www.lwfinger.com/drawxtl/
DISTNAME= ${PORTNAME}${DISTVERSION:S/.//}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Crystal structure visualization tool
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libfltk.so:x11-toolkits/fltk
USES= desktop-file-utils gl gmake localbase xorg
USE_GL= gl glu
USE_XORG= xinerama xft xext x11 xpm
BINARY_ALIAS= gcc=${CC} g++=${CXX}
WRKSRC= ${WRKDIR}/${PORTNAME}/source/${DISTNAME}
PLIST_FILES= bin/${PORTNAME} share/pixmaps/${PORTNAME}.xpm
DESKTOP_ENTRIES="${PORTNAME}" \
"${COMMENT}" \
"${PREFIX}/share/pixmaps/${PORTNAME}.xpm" \
"${PORTNAME}" \
"Chemistry;Physics;Science;Education;Viewer;" \
""
POST_PLIST= complete-desktop-entries
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/../../exe/${DISTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.xpm ${STAGEDIR}${PREFIX}/share/pixmaps
complete-desktop-entries:
@${ECHO} "MimeType=chemical/x-cif;chemical/x-shelx;" >> ${STAGEDIR}${DESKTOPDIR}/${PORTNAME}.desktop
.include <bsd.port.mk>
|