blob: 717ff173975f832ffcf65d4d2c4f587b496aab71 (
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: mb@imp.ch
PORTNAME= jpgtn
PORTVERSION= 2.06
PORTREVISION= 4
CATEGORIES= graphics
MASTER_SITES= SF SUNSITE/apps/graphics/misc
MAINTAINER= fuz@fuz.su
COMMENT= Creates thumbnails of JPEG images
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= jpeg
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libjpeg=${LOCALBASE}
PLIST_FILES= bin/jpgtn \
man/man1/jpgtn.1.gz
WITH_MAXSIZE?= 2048
WITH_MINSIZE?= 1
WITH_DEFSIZE?= 128
post-patch:
@${ECHO_MSG} "Setting MAXSIZE to ${WITH_MAXSIZE}"
@${REINPLACE_CMD} "s/define MAXSIZE[[:blank:]]*2048/define MAXSIZE ${WITH_MAXSIZE}/" ${WRKSRC}/src/jpgtn.h
@${ECHO_MSG} "Setting MINSIZE to ${WITH_MINSIZE}"
@${REINPLACE_CMD} "s/define MINSIZE[[:blank:]]*1/define MINSIZE ${WITH_MINSIZE}/" ${WRKSRC}/src/jpgtn.h
@${ECHO_MSG} "Setting DEFAULTSIZE to ${WITH_DEFSIZE}"
@${REINPLACE_CMD} "s/define DEFAULTSIZE[[:blank:]]*128/define DEFAULTSIZE ${WITH_DEFSIZE}/" ${WRKSRC}/src/jpgtn.h
@${REINPLACE_CMD} "s/(2-2048) the size defaults to 128/(${WITH_MINSIZE}-${WITH_MAXSIZE}) the size defaults to ${WITH_DEFSIZE}/" \
${WRKSRC}/doc/jpgtn.1
.include <bsd.port.mk>
|