New package: prototype-1.0.0.

This commit is contained in:
Juan RP 2019-07-02 11:50:52 +02:00
parent b07c2420bf
commit 94253ff6dc
No known key found for this signature in database
GPG key ID: AF19F6CB482F9368
3 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1,3 @@
#!/bin/sh
cd /usr/libexec/prototype
exec ./prototype "$@"

View file

@ -0,0 +1,36 @@
--- Makefile.orig 2019-05-29 19:03:53.594802724 +0200
+++ Makefile 2019-05-29 19:11:57.443458314 +0200
@@ -1,11 +1,12 @@
CPP = g++
+
ifeq ($(ODROID),1)
CXXFLAGS = -O3 -fsigned-char -fdiagnostics-color=auto -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=hard -fsingle-precision-constant -g -ffast-math -I./ -I/usr/include/GL -Wno-write-strings -DODROID
LDFLAGS = -lGL -lm
DEST = /usr/local
else ifeq ($(LINUX),1)
-CXXFLAGS = -O2 -g -I./ -I/usr/include/GL -Wno-write-strings
-LDFLAGS = -lGL -lm
+CXXFLAGS ?= -O2 -g -I./ -I/usr/include/GL -Wno-write-strings
+LIBS = -lGL -lm
DEST = /usr/local
else ifeq ($(AMIGAOS4),1)
ifeq ($(SDL2),1)
@@ -50,9 +51,9 @@ LDFLAGS += -lfmod
else
CXXFLAGS += -DNO_FMOD
ifeq ($(SDL2),1)
-LDFLAGS += -lSDL2_mixer
+SDL_LDFLAGS += -lSDL2_mixer
else
-LDFLAGS += -lSDL_mixer
+SDL_LDFLAGS += -lSDL_mixer
endif
endif
endif
@@ -76,5 +77,5 @@ clean:
$(PROGRAM): $(OBJS) $(LIBS)
@echo "Linking $(PROGRAM) ..."
- $(LD) -o $(PROGRAM) $(OBJS) $(LDFLAGS) $(SDL_LDFLAGS)
+ $(LD) -o $(PROGRAM) $(OBJS) $(LDFLAGS) $(LIBS) $(SDL_LDFLAGS)

View file

@ -0,0 +1,24 @@
# Template file for 'prototype'
pkgname=prototype
version=1.0.0
revision=1
makedepends="libpng-devel SDL2_mixer-devel"
short_desc="RType remake from Dark Castle Software"
maintainer="Juan RP <xtraeme@gmail.org>"
license="Public Domain"
homepage="https://github.com/ptitSeb/prototype"
distfiles="https://github.com/ptitSeb/prototype/archive/v${version}.tar.gz"
checksum=400f8a5c727c9feaa6b48b65c23c312db41dd238af9526659bf3342346c05af6
nocross=yes
CXXFLAGS="-Wno-write-strings"
do_build() {
make SDL2=1 LINUX=1 CPP=$CXX ${makejobs}
}
do_install() {
vmkdir usr/libexec/prototype
vcopy Data usr/libexec/prototype
install -m755 prototype ${DESTDIR}/usr/libexec/prototype
vbin ${FILESDIR}/prototype.sh prototype
}