View | Details | Raw Unified | Return to bug 206476
Collapse All | Expand All

(-)Makefile (-1 / +2 lines)
Lines 22-28 Link Here
22
CMAKE_ARGS=	-Denable_mcstas=1
22
CMAKE_ARGS=	-Denable_mcstas=1
23
GNU_CONFIGURE=	yes
23
GNU_CONFIGURE=	yes
24
24
25
SUB_FILES=	pkg-install
25
PLIST_SUB+=	PORTVERSION=${PORTVERSION}
26
SUB_FILES=	pkg-deinstall pkg-install
26
SUB_LIST=	PORTVERSION=${PORTVERSION}
27
SUB_LIST=	PORTVERSION=${PORTVERSION}
27
28
28
.include <bsd.port.mk>
29
.include <bsd.port.mk>
(-)files/pkg-deinstall.in (+24 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
PKG_PREFIX=${PKG_PREFIX:-%%PREFIX%%}
4
5
if [ $# -ne 2 ]; then
6
    echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
7
    exit 1
8
fi
9
10
execs="mcdaemon mcdisplay mcdoc mcformatgui mcgui mcplot mcresplot mcrun mcstas2vitess"
11
12
case $2 in
13
     DEINSTALL)
14
15
		if [ ! -f "${PKG_PREFIX}/bin" ]; then
16
			echo "Deinstalling links to executables in ${PKG_PREFIX}/bin.";
17
                        for target in ${execs}; do
18
				rm ${PKG_PREFIX}/bin/${target};
19
			done                
20
		fi
21
		;;
22
esac
23
24
exit 0

Return to bug 206476