- Add LICENSE

- Switch to options helpers
- Don't install LICENSE with documentation
- Regenerate patches with `make makepatch`
This commit is contained in:
Dmitry Marakasov 2016-07-26 09:00:53 +00:00
parent a5ec31870c
commit 6abbdf7eb8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=419103
2 changed files with 16 additions and 11 deletions

View file

@ -11,20 +11,25 @@ MASTER_SITES= LOCAL/cy
MAINTAINER= ports@FreeBSD.org
COMMENT= Resolution tool for Intel i915 video cards
LICENSE= PD
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
ONLY_FOR_ARCHS= i386 amd64
USE_RC_SUBR= 915resolution
PLIST_FILES= sbin/915resolution
PORTDOCS= README.txt LICENSE.txt chipset_info.txt changes.log
PORTDOCS= README.txt chipset_info.txt changes.log
OPTIONS_DEFINE= DOCS
ONLY_FOR_ARCHS= i386 amd64
do-build:
${CC} ${CFLAGS} ${WRKSRC}/915resolution.c -o ${WRKSRC}/915resolution
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/915resolution ${STAGEDIR}${PREFIX}/sbin
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}

View file

@ -1,5 +1,5 @@
--- 915resolution.c.orig Sun Apr 15 06:46:56 2007
+++ 915resolution.c Sun Apr 15 06:46:56 2007
--- 915resolution.c.orig 2007-04-15 10:46:56 UTC
+++ 915resolution.c
@@ -21,8 +21,10 @@
#define __USE_GNU
#include <string.h>
@ -12,7 +12,7 @@
#include <unistd.h>
#include <assert.h>
@@ -165,7 +167,8 @@
@@ -165,7 +167,8 @@ typedef struct {
void initialize_system(char * filename) {
if (!filename) {
@ -22,7 +22,7 @@
perror("Unable to obtain the proper IO permissions");
exit(2);
}
@@ -173,7 +176,7 @@
@@ -173,7 +176,7 @@ void initialize_system(char * filename)
}
cardinal get_chipset_id(void) {
@ -31,7 +31,7 @@
return inl(0xcfc);
}
@@ -496,11 +499,11 @@
@@ -496,11 +499,11 @@ void unlock_vbios(vbios_map * map) {
break;
case CT_830:
case CT_855GM:
@ -46,7 +46,7 @@
break;
case CT_845G:
case CT_865G:
@@ -511,13 +514,13 @@
@@ -511,13 +514,13 @@ void unlock_vbios(vbios_map * map) {
case CT_946GZ:
case CT_G965:
case CT_Q965:
@ -64,7 +64,7 @@
break;
}
@@ -539,8 +542,8 @@
@@ -539,8 +542,8 @@ void relock_vbios(vbios_map * map) {
break;
case CT_830:
case CT_855GM:
@ -75,7 +75,7 @@
break;
case CT_845G:
case CT_865G:
@@ -551,9 +554,9 @@
@@ -551,9 +554,9 @@ void relock_vbios(vbios_map * map) {
case CT_946GZ:
case CT_G965:
case CT_Q965: