freebsd-ports/deskutils/gworkspace/Makefile
Alexey Dokuchaev b4909e6a22 Ensure that there is only one variable definition per each object, as
the C (and C++) standards mandated for years and compilers started to
enforce as of recently (Clang 11, GCC 10).

PR:	252122
2021-01-13 10:29:16 +00:00

37 lines
819 B
Makefile

# $FreeBSD$
PORTNAME= gworkspace
PORTVERSION= 0.9.4
PORTREVISION= 3
CATEGORIES= deskutils gnustep
#MASTER_SITES= http://www.gnustep.it/enrico/gworkspace/
MASTER_SITES= GNUSTEP/usr-apps
MAINTAINER= ports@FreeBSD.org
COMMENT= GNUstep workspace manager
LICENSE= GPLv2
USES= gnustep
USE_GNUSTEP= back build
USE_LDCONFIG= ${GNUSTEP_SYSTEM_LIBRARIES}
GNU_CONFIGURE= yes
ADDITIONAL_LDFLAGS+= -L${WRKSRC}/FSNode/FSNode.framework/Versions/A
.if defined(WITHOUT_GHOSTSCRIPT)
PLIST_SUB+= PDFVIEW="@comment "
.else
PLIST_SUB+= PDFVIEW=""
USES+= ghostscript
.endif
post-patch:
# Fix the build with -fno-common (for Clang 11 and GCC 10)
@${REINPLACE_CMD} -e '/serverConnection/s,^,extern ,' \
${WRKSRC}/Inspector/ContentViewers/ImageViewer/Resizer.h
pre-configure:
${RM} -r ${WRKSRC}/GWMetadata
.include <bsd.port.mk>