blob: 9d9cd056a9c40271d7cf18e501a32b943024b27b (
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
50
51
|
# Created by: John McAree <john@mcaree.org>
# $FreeBSD$
PORTNAME= comical
PORTVERSION= 0.8
PORTREVISION= 6
CATEGORIES= graphics
MASTER_SITES= SF
MAINTAINER= dinoex@FreeBSD.org
COMMENT= A sequential image viewer
LIB_DEPENDS= unrar:${PORTSDIR}/archivers/libunrar
LICENSE= GPLv2
USE_GMAKE= yes
USE_WX= 2.6+
WX_PREMK= yes
WX_UNICODE= yes
PLIST_FILES= bin/comical
MAKE_JOBS_UNSAFE= yes
NO_STAGE= yes
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|; \
s|\`wx-config --cxx\`|${CXX}|; \
s|wx-config|${WX_CONFIG}|; \
s|unrar/libunrar.a u|u|; \
s|-lunrar|-L${LOCALBASE}/lib -lunrar|;' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|wx-config|${WX_CONFIG}|; \
s|-D_UNIX|-D_UNIX -DwxUSE_UNICODE|; \
s|CFLAGS =|CFLAGS=${CFLAGS} |; \
s|CPPFLAGS =|CPPFLAGS=${CXXFLAGS} |; \
s|$$(CC)|${CXX}|; \
s|-I../unrar|-I${LOCALBASE}/include/libunrar3|;' \
${WRKSRC}/src/Makefile
@${REINPLACE_CMD} -e 's|gcc|${CC}|; \
s|CFLAGS=|CFLAGS+=|;' \
${WRKSRC}/unzip/Makefile
.if ${WX_VERSION} == "2.8"
@${REINPLACE_CMD} -e 's|frame->SetIcon|//frame->SetIcon|' ${WRKSRC}/src/ComicalApp.cpp
.endif
.include <bsd.port.post.mk>
|