Lines 6-16
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= gdisk |
8 |
PORTNAME= gdisk |
9 |
PORTVERSION= 0.6.14 |
9 |
PORTVERSION= 0.8.0 |
10 |
CATEGORIES= sysutils |
10 |
CATEGORIES= sysutils |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
11 |
MASTER_SITES= http://sourceforge.net/projects/%SUBDIR%/ |
12 |
MASTER_SITE_SUBDIR= gptfdisk/gptfdisk/${PORTVERSION} |
12 |
MASTER_SITE_SUBDIR= gptfdisk/files/gptfdisk/${PORTVERSION} |
13 |
EXTRACT_SUFX= .tgz |
13 |
DISTNAME= gptfdisk-${PORTVERSION} |
14 |
|
14 |
|
15 |
MAINTAINER= fdn@okbire.ru |
15 |
MAINTAINER= fdn@okbire.ru |
16 |
COMMENT= GPT fdisk |
16 |
COMMENT= GPT fdisk |
Lines 18-23
Link Here
|
18 |
LIB_DEPENDS= uuid.1:${PORTSDIR}/misc/e2fsprogs-libuuid \ |
18 |
LIB_DEPENDS= uuid.1:${PORTSDIR}/misc/e2fsprogs-libuuid \ |
19 |
popt.0:${PORTSDIR}/devel/popt |
19 |
popt.0:${PORTSDIR}/devel/popt |
20 |
|
20 |
|
|
|
21 |
WRKSRC= ${WRKDIR}/gptfdisk-${PORTVERSION} |
22 |
|
21 |
LICENSE= GPLv2 |
23 |
LICENSE= GPLv2 |
22 |
LICENSE_FILE= ${WRKSRC}/COPYING |
24 |
LICENSE_FILE= ${WRKSRC}/COPYING |
23 |
|
25 |
|
Lines 25-30
Link Here
|
25 |
|
27 |
|
26 |
ONLY_FOR_ARCHS= i386 amd64 |
28 |
ONLY_FOR_ARCHS= i386 amd64 |
27 |
|
29 |
|
|
|
30 |
OPTIONS= CGDISK "A curses-based interactive program" off \ |
31 |
UTF16 "Support for Unicode partition names" off |
32 |
|
28 |
.include <bsd.port.pre.mk> |
33 |
.include <bsd.port.pre.mk> |
29 |
|
34 |
|
30 |
.if ${OSVERSION} < 701100 |
35 |
.if ${OSVERSION} < 701100 |
Lines 33-54
Link Here
|
33 |
|
38 |
|
34 |
MAKEFILE= Makefile.freebsd |
39 |
MAKEFILE= Makefile.freebsd |
35 |
|
40 |
|
36 |
MAN8= gdisk.8 sgdisk.8 |
41 |
PROGRAM_LIST= fixparts gdisk sgdisk |
|
|
42 |
|
43 |
.if defined(WITH_CGDISK) |
44 |
PROGRAM_LIST+= cgdisk |
45 |
LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses |
46 |
.endif |
47 |
|
48 |
MAN8= |
49 |
.for i in ${PROGRAM_LIST} |
50 |
MAN8+= ${i}.8 |
51 |
.endfor |
52 |
|
53 |
.if defined(WITH_UTF16) |
54 |
LIB_DEPENDS+= icuuc.48:${PORTSDIR}/devel/icu |
55 |
.endif |
37 |
|
56 |
|
38 |
post-patch: |
57 |
post-patch: |
39 |
${REINPLACE_CMD} -e 's|/usr/include/||' ${WRKSRC}/guid.h |
58 |
${REINPLACE_CMD} -e 's|/usr/include/||' ${WRKSRC}/guid.h |
40 |
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/Makefile.freebsd |
59 |
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/${MAKEFILE} |
41 |
|
60 |
|
42 |
do-install: |
61 |
.if !defined(WITH_CGDISK) |
43 |
.if !defined(NOPORTDOCS) |
62 |
${REINPLACE_CMD} -e '/^all:/s| cgdisk||' ${WRKSRC}/${MAKEFILE} |
44 |
${MKDIR} ${DOCSDIR} |
63 |
.endif |
|
|
64 |
|
65 |
.if !defined(WITH_UTF16) |
66 |
${REINPLACE_CMD} -e 's| -D USE_UTF16||' \ |
67 |
-e 's| -licuio||' ${WRKSRC}/${MAKEFILE} |
45 |
.endif |
68 |
.endif |
46 |
.for i in gdisk sgdisk |
69 |
|
|
|
70 |
do-install: |
71 |
.for i in ${PROGRAM_LIST} |
47 |
${INSTALL_PROGRAM} ${WRKSRC}/${i} ${PREFIX}/sbin |
72 |
${INSTALL_PROGRAM} ${WRKSRC}/${i} ${PREFIX}/sbin |
48 |
${INSTALL_MAN} ${WRKSRC}/${i}.8 ${MANPREFIX}/man/man8 |
73 |
${INSTALL_MAN} ${WRKSRC}/${i}.8 ${MANPREFIX}/man/man8 |
49 |
.if !defined(NOPORTDOCS) |
|
|
50 |
${INSTALL_MAN} ${WRKSRC}/${i}.html ${DOCSDIR} |
51 |
.endif |
52 |
.endfor |
74 |
.endfor |
53 |
|
75 |
|
54 |
post-install: |
76 |
post-install: |