Hi ports --

This is a simple update to games/julius.

Sending a diff in case someone is clang smarter than me. Right now, the tests are compiled with the --coverage flag, which causes undefined symbol linker errors. I made a patch to remove the --coverage flag, but perhaps someone knows what library I need to link with to resolve the undefined symbol errors.

~Brian

Index: Makefile
===================================================================
RCS file: /cvs/ports/games/julius/Makefile,v
retrieving revision 1.6
diff -u -p -r1.6 Makefile
--- Makefile	11 Nov 2018 16:00:14 -0000	1.6
+++ Makefile	27 May 2019 14:47:18 -0000
@@ -1,18 +1,20 @@
 # $OpenBSD: Makefile,v 1.6 2018/11/11 16:00:14 bcallah Exp $
 
+V =		1.1.0
 COMMENT =	open source re-implementation of Caesar III game engine
+DISTNAME =	julius-${V}
+EXTRACT_SUFX =	-source.tar.gz
 CATEGORIES =	games x11
 
-GH_ACCOUNT =	bvschaik
-GH_PROJECT =	julius
-GH_TAGNAME =	v1.0.0
-
+HOMEPAGE =	https://github.com/bvschaik/julius
 MAINTAINER =	Brian Callahan <bcal...@openbsd.org>
 
 # AGPLv3 only
 PERMIT_PACKAGE_CDROM =	Yes
 
-WANTLIB += SDL2 SDL2_mixer c pthread
+WANTLIB += SDL2 SDL2_mixer c m pthread
+
+MASTER_SITES =	https://github.com/bvschaik/julius/releases/download/v${V}/
 
 MODULES =	devel/cmake
 
Index: distinfo
===================================================================
RCS file: /cvs/ports/games/julius/distinfo,v
retrieving revision 1.5
diff -u -p -r1.5 distinfo
--- distinfo	11 Nov 2018 16:00:14 -0000	1.5
+++ distinfo	27 May 2019 14:47:18 -0000
@@ -1,2 +1,2 @@
-SHA256 (julius-1.0.0.tar.gz) = FFZw3BhaYn3lR+PD/kXSuytAvewpKYiM0ZxWgU8h68U=
-SIZE (julius-1.0.0.tar.gz) = 2665014
+SHA256 (julius-1.1.0-source.tar.gz) = LfgNsNxIATDBQWltPI+ioXd32sD/rUEyhVIqsEujxPg=
+SIZE (julius-1.1.0-source.tar.gz) = 4415969
Index: patches/patch-test_CMakeLists_txt
===================================================================
RCS file: patches/patch-test_CMakeLists_txt
diff -N patches/patch-test_CMakeLists_txt
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-test_CMakeLists_txt	27 May 2019 14:47:18 -0000
@@ -0,0 +1,18 @@
+$OpenBSD$
+
+clang --coverage fails to link.
+
+Index: test/CMakeLists.txt
+--- test/CMakeLists.txt.orig
++++ test/CMakeLists.txt
+@@ -1,8 +1,8 @@
+ include_directories(.)
+ 
+ if(${CMAKE_C_COMPILER_ID} STREQUAL "GNU" OR ${CMAKE_C_COMPILER_ID} STREQUAL "Clang")
+-    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --coverage")
+-    set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --coverage")
++    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
++    set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS}")
+ endif()
+ 
+ function(except_file var excluded_file)

Reply via email to