-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pvpgn: Fix implicit delarations (closes #1101)
- Loading branch information
Showing
2 changed files
with
12 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
Info2: << | ||
Package: pvpgn%type_pkg[sql] | ||
Version: 1.8.5 | ||
Revision: 1005 | ||
Revision: 1006 | ||
Type: sql (-mysql -pgsql .) | ||
Source: http://download.berlios.de/%{ni}/%{ni}-%v.tar.gz | ||
#Source: http://download.berlios.de/%{ni}/%{ni}-%v.tar.gz | ||
Source: https://github.com/pvpgn/pvpgn-server/releases/download/v%v/%{ni}-%v.tar.gz | ||
Maintainer: U-238 <[email protected]> | ||
HomePage: http://pvpgn.berlios.de | ||
Description: Battle.net and WOL emulation server | ||
|
@@ -20,13 +21,16 @@ Replaces: << | |
<< | ||
Depends: << | ||
pvpgn-support (>= 1.2-1001), | ||
libbind6, | ||
(%type_raw[sql] = -mysql) mysql-unified, | ||
(%type_raw[sql] = -mysql) mysql-unified-shlibs, | ||
(%type_raw[sql] = -pgsql) postgresql12, | ||
(%type_raw[sql] = -pgsql) postgresql12-shlibs | ||
<< | ||
BuildDepends: << | ||
autoconf2.6, | ||
fink-package-precedence, | ||
libbind6-dev, | ||
libpcap1, | ||
(%type_raw[sql] = -mysql) mysql-unified-dev, | ||
(%type_raw[sql] = -pgsql) postgresql12-dev | ||
|
@@ -76,16 +80,20 @@ ConfigureParams: << | |
--datadir=%p/share/pvpgn | ||
<< | ||
PatchFile: pvpgn.patch | ||
PatchFile-MD5: e38fe9b0262af0c928e7c2d5658c85c2 | ||
PatchFile-MD5: 915f5c5f0c6d7c1bcc7ff44f0c78e9c8 | ||
PatchScript: << | ||
#! /bin/sh -ev | ||
%{default_script} | ||
perl -pi.bak -e 's,(pgsql_try_includes)=".*",\1="%p/opt/postgresql-12/include",' src/configure | ||
# configure checks a hard-code list of paths for headers | ||
# rather that calling their _config scripts | ||
perl -pi.bak -e 's,(pgsql_try_includes)=".*",\1="%p/opt/postgresql-12/include",; s,(mysql_try_includes)=".*",\1="%p/include/mysql",' src/configure.in | ||
perl -pi -e 's/\@(\$\{LINK\})/\1/' src/Makefile.in | ||
<< | ||
CompileScript: << | ||
#! /bin/sh -ev | ||
cd src | ||
# tons of tests need upating for new clang strictness | ||
autoreconf -fi | ||
if [ "%type_raw[sql]" == "-pgsql" ]; then | ||
export LDFLAGS="-L%p/opt/postgresql-12/lib $LDFLAGS" | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters